Beispiel #1
0
 public SingleTenant(IConnectionFactory factory, StoreOptions options) : base(options)
 {
     _factory = factory;
     _options = options;
     Default  = new Tenant(options.Storage, options, factory, Tenancy.DefaultTenantId);
     Cleaner  = new DocumentCleaner(options, Default);
     Schema   = new TenantSchema(options, Default.As <Tenant>());
 }
Beispiel #2
0
 public DefaultTenancy(IConnectionFactory factory, StoreOptions options) : base(options)
 {
     Default = new Tenant(options.Storage, options, factory, DefaultTenantId);
     Cleaner = new DocumentCleaner(options, Default);
     Schema  = new TenantSchema(options, Default.As <Tenant>());
 }
Beispiel #3
0
 public ConjoinedTenancy(IConnectionFactory factory, StoreOptions options) : base(options)
 {
     Default = new Tenant(options.Storage, options, factory, Tenancy.DefaultTenantId);
     Cleaner = new DocumentCleaner(options, Default);
     Schema  = new TenantSchema(options, TypeExtensions.As <Tenant>(Default));
 }