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