コード例 #1
0
 public static IScopeOptions UseCoreDI(this IScopeOptions options, IServiceScopeFactory serviceScopeFactory)
 {
     options.UseInjectionScopeFactory(new CoreInjectionScopeFactory(serviceScopeFactory));
     return(options);
 }
コード例 #2
0
 public static IScopeOptions UseAutofac(this IScopeOptions options, ILifetimeScope lifetimeScope)
 {
     options.UseInjectionScopeFactory(new AutofacInjectionScopeFactory(lifetimeScope));
     return(options);
 }
コード例 #3
0
ファイル: DbScopeFactory.cs プロジェクト: cortlex/Rescope
 public DbScopeFactory(IScopeOptions options) : base(options)
 {
 }
コード例 #4
0
 public static IScopeOptions UseCastleWindsor(this IScopeOptions options, IKernel kernel)
 {
     options.UseInjectionScopeFactory(new CastleWindsorInjectionScopeFactory(kernel));
     return(options);
 }
コード例 #5
0
 protected ScopeFactoryBase(IScopeOptions options)
 {
     _options = options;
 }