Esempio n. 1
0
 public static IServiceScope BeginScope(this IContainerAware me)
 {
     return(ContainerService.Current.BeginScope());
 }
Esempio n. 2
0
 public static T Resolve <T>(this IContainerAware me)
     where T : class
 {
     return(ContainerService.Current?.Resolve <T>());
 }
Esempio n. 3
0
 public static T Resolve <T>(this IContainerAware me, IServiceScope scope, Type type)
     where T : class
 {
     return(scope.ServiceProvider.GetService(type) as T);
 }