Esempio n. 1
0
 public static IServiceBuilder Singleton(this IServiceBuilder service)
 {
     return(service.LifeTime(LifeTime.Singleton));
 }
Esempio n. 2
0
 public static IServiceBuilder PerWebRequest(this IServiceBuilder service)
 {
     return(service.LifeTime(LifeTime.PerWebRequest));
 }
Esempio n. 3
0
 public static IServiceBuilder PerThread(this IServiceBuilder service)
 {
     return(service.LifeTime(LifeTime.PerThread));
 }
Esempio n. 4
0
 public static IServiceBuilder Transient(this IServiceBuilder service)
 {
     return(service.LifeTime(LifeTime.Transient));
 }