Beispiel #1
0
 public TenantContainerMiddleware(RequestDelegate next, IModulesHost modulesHost,
                                  ITenantsHost tenantsHost, IOptions <TenantsConfig> tenantsOption, ILogger <TenantContainerMiddleware> logger)
 {
     this.next          = next;
     this.modulesHost   = modulesHost;
     this.tenantsHost   = tenantsHost;
     this.tenantsConfig = tenantsOption.Value;
     this.logger        = logger;
 }
Beispiel #2
0
 public TenantsHost(IOptions <TenantsConfig> tenantsOption,
                    ITenantContainerFactory factory,
                    IModulesHost modulesHost,
                    ILogger <TenantsHost> logger)
 {
     tenantsConfig          = tenantsOption.Value;
     tenantContainerFactory = factory;
     this.modulesHost       = modulesHost;
     this.logger            = logger;
 }
Beispiel #3
0
 public TenantContainerFactory(
     IServiceCollection applicationServices,
     IServiceProvider serviceProvider,
     IModulesHost modulesHost,
     ILogger <TenantContainerFactory> logger)
 {
     this.applicationServices = applicationServices;
     this.serviceProvider     = serviceProvider;
     this.modulesHost         = modulesHost;
     this.logger = logger;
 }