Exemplo n.º 1
0
 public static IServiceDefintions AddTransient <TService>(this IServiceDefintions services, Func <INamedServiceProvider, TService> implementationFactory, string name = null)
     where TService : class
 {
     return(services.AddTransient(typeof(TService), typeof(TService), implementationFactory, name));
 }
Exemplo n.º 2
0
 public static IServiceDefintions AddTransient(this IServiceDefintions services, Type serviceType, Func <INamedServiceProvider, object> serviceFactory, string name = null)
 {
     return(services.AddTransient(serviceType, serviceType, serviceFactory, name));
 }
Exemplo n.º 3
0
 public static IServiceDefintions AddTransient <TService>(this IServiceDefintions services, string name = null)
     where TService : class
 {
     return(services.AddTransient(typeof(TService), typeof(TService), null, name));
 }
Exemplo n.º 4
0
 public static IServiceDefintions AddTransient(this IServiceDefintions services, Type serviceType, string name = null)
 {
     return(services.AddTransient(serviceType, serviceType, null, name));
 }