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