Beispiel #1
0
 public static IConfigurableNSubContainer RegisterPerScope <TKey>(this IConfigurableNSubContainer container, Func <INSubResolver, TKey> factory)
 {
     return(container.Register(factory, NSubLifetime.PerScope));
 }
Beispiel #2
0
 public static IConfigurableNSubContainer RegisterSingleton <TKey, TImpl>(this IConfigurableNSubContainer container)
     where TImpl : TKey
 {
     return(container.Register <TKey, TImpl>(NSubLifetime.Singleton));
 }
Beispiel #3
0
 public static IConfigurableNSubContainer RegisterPerScope <TKey, TImpl>(this IConfigurableNSubContainer container)
     where TImpl : TKey
 {
     return(container.Register <TKey, TImpl>(NSubLifetime.PerScope));
 }