Mugen Injection [WeakReferenceScopeLifecycle]
WeakReferenceScopeLifecycle - instances activated via the binding should be re-used as weak reference.
// Create your MugenInjector. _injector = new MugenInjector(); _injector.Bind<Alpha>().ToSelf().InWeakReferenceScope(); var alpha1 = _injector.Get<Alpha>(); // This is a same instance that alpha1. var alpha2 = _injector.Get<Alpha>(); alpha1 = null; alpha2 = null; //Calling GC to clear weakreference. GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); //This is different instance it did not like was alpha1. alpha1 = _injector.Get<Alpha>(); // This is a same instance that alpha1. alpha2 = _injector.Get<Alpha>();