alexanderfedin

Results 3 comments of alexanderfedin

Do you, guys, remember what the [WeakReference](https://docs.microsoft.com/en-us/dotnet/api/system.weakreference?view=net-6.0) class is and what is it for? If you let DI container reference transient objects through WeakReference only, then the problem solves by...

As simple as following: - for all types of entities have two pointer fields - strong and weak T _strong; WeakReference _weak; - for scoped and singleton (global scope) entities...

Let's say, the item is transient and the client got it through DI. That means that there are just two references to that item: one is strong (by client) and...