示例#1
0
 public void Configure(string name, TariffService options)
 {
     Configure(options);
     options.QuotaService      = QuotaService.Get(name);
     options.TenantService     = TenantService.Get(name);
     options.LazyCoreDbContext = new Lazy <CoreDbContext>(() => CoreDbContextManager.Get(name));
 }
示例#2
0
 public void Configure(string name, TariffService options)
 {
     Configure(options);
     options.QuotaService  = QuotaService.Get(name);
     options.TenantService = TenantService.Get(name);
     options.CoreDbContext = CoreDbContextManager.Get(name);
 }
示例#3
0
        public void Configure(string name, TenantManager options)
        {
            Configure(options);

            options.TenantService = TenantService.Get(name);
            options.QuotaService  = QuotaService.Get(name);
            options.TariffService = TariffService.Get(name);
        }
示例#4
0
 public void Configure(string name, HostedSolution hostedSolution)
 {
     Configure(hostedSolution);
     hostedSolution.Region              = name;
     hostedSolution.TenantService       = TenantService.Get(name);
     hostedSolution.UserService         = UserService.Get(name);
     hostedSolution.QuotaService        = QuotaService.Get(name);
     hostedSolution.TariffService       = TariffService.Get(name);
     hostedSolution.ClientTenantManager = TenantManager.Get(name);
     hostedSolution.TenantUtil          = TenantUtil.Get(name);
     hostedSolution.SettingsManager     = DbSettingsManager.Get(name);
     hostedSolution.CoreSettings        = CoreSettings.Get(name);
 }