About .NET, ASP.NET, MVC, C#, WPF, WCF and everything related to .NET and more.

Mugen Injection [TransientScopeLifecycle]

TransientScopeLifecycle - в случаи активации через рефлексию создается новый экземпляр, не должны быть повторно использованы.
Пример кода:

// Create your MugenInjector.
_injector = new MugenInjector();
//Indicates that instances activated via the binding should not be re-used, nor have their lifecycle managed.

var alpha1 = _injector.Get<Alpha>();
// This is a different instance.
var alpha2 = _injector.Get<Alpha>();

Оставить комментарий
* Bullet List
** Bullet List 2
# Number List
## Number List 2
{"Do not apply formatting"}
{code:language} code here {code:language}.
Supports: aspx c#, c#, c++, html, sql, xml