public MultiRegionHostedSolution(string dbid,
                                  IConfiguration configuraion,
                                  CookieStorage cookieStorage,
                                  EFLoggerFactory loggerFactory,
                                  IOptionsSnapshot <HostedSolution> hostedSolutionOptions)
 {
     this.dbid             = dbid;
     Configuraion          = configuraion;
     CookieStorage         = cookieStorage;
     LoggerFactory         = loggerFactory;
     HostedSolutionOptions = hostedSolutionOptions;
     Initialize();
 }
Beispiel #2
0
 public MailServiceHelper(
     UserManager userManager,
     AuthContext authContext,
     IConfiguration configuration,
     CoreBaseSettings coreBaseSettings,
     MailServiceHelperStorage mailServiceHelperStorage,
     DbContextManager <MailDbContext> dbContext,
     EFLoggerFactory loggerFactory)
 {
     UserManager              = userManager;
     AuthContext              = authContext;
     Configuration            = configuration;
     CoreBaseSettings         = coreBaseSettings;
     MailServiceHelperStorage = mailServiceHelperStorage;
     LoggerFactory            = loggerFactory;
     MailDbContext            = dbContext.Get("webstudio");
     Cache           = mailServiceHelperStorage.Cache;
     DefaultDatabase = GetDefaultDatabase();
 }
 public MultiRegionHostedSolution(string dbid,
                                  IConfiguration configuraion,
                                  CookieStorage cookieStorage,
                                  EFLoggerFactory loggerFactory,
                                  TariffServiceStorage tariffServiceStorage,
                                  IOptionsMonitor <ILog> options,
                                  TenantUtil tenantUtil,
                                  TenantDomainValidator tenantDomainValidator)
 {
     this.dbid            = dbid;
     Configuraion         = configuraion;
     CookieStorage        = cookieStorage;
     LoggerFactory        = loggerFactory;
     TariffServiceStorage = tariffServiceStorage;
     Options               = options;
     TenantUtil            = tenantUtil;
     TenantDomainValidator = tenantDomainValidator;
     Initialize();
 }
Beispiel #4
0
 public ConfigureDbContext(EFLoggerFactory loggerFactory, ConfigurationExtension configuration)
 {
     LoggerFactory = loggerFactory;
     Configuration = configuration;
 }