Esempio n. 1
0
 public static IScopeOptions UseCoreDI(this IScopeOptions options, IServiceScopeFactory serviceScopeFactory)
 {
     options.UseInjectionScopeFactory(new CoreInjectionScopeFactory(serviceScopeFactory));
     return(options);
 }
Esempio n. 2
0
 public static IScopeOptions UseAutofac(this IScopeOptions options, ILifetimeScope lifetimeScope)
 {
     options.UseInjectionScopeFactory(new AutofacInjectionScopeFactory(lifetimeScope));
     return(options);
 }
Esempio n. 3
0
 public DbScopeFactory(IScopeOptions options) : base(options)
 {
 }
Esempio n. 4
0
 public static IScopeOptions UseCastleWindsor(this IScopeOptions options, IKernel kernel)
 {
     options.UseInjectionScopeFactory(new CastleWindsorInjectionScopeFactory(kernel));
     return(options);
 }
Esempio n. 5
0
 protected ScopeFactoryBase(IScopeOptions options)
 {
     _options = options;
 }