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