Ejemplo n.º 1
0
 public static IConfigurableTinyDIContainer RegisterSingleton <TKey, TImpl>(this IConfigurableTinyDIContainer container)
     where TImpl : TKey
 {
     return(container.Register <TKey, TImpl>(ServiceLifetime.Singleton));
 }
Ejemplo n.º 2
0
 public static IConfigurableTinyDIContainer RegisterPerScope <TKey>(this IConfigurableTinyDIContainer container, Func <ITinyDIResolver, TKey> factory)
 {
     return(container.Register(factory, ServiceLifetime.PerScope));
 }