jspuij / RESTier

A turn-key library for building RESTful services
http://odata.github.io/RESTier
Other
2 stars 0 forks source link

General issue for lifetime problems. #13

Open jspuij opened 5 years ago

jspuij commented 5 years ago

Since the Microsoft DI framework does not check for lifetime issues, there are a lot of them in the code base.

It boils down to longer-lifetime objects holding references to shorter living objects.

E.G. a singleton holding a reference to an object that has a transient lifetime.

robertmclaws commented 5 years ago

I have a feeling this will be too difficult to untangle without MASSIVE changes to the codebase. It sucks, but this was written in 2014, so we're stuck with it for now. I definitely want this to be a major priority for v2, thought.