public TenantOptionsFactory( IEnumerable <IConfigureOptions <TOptions> > setups, IEnumerable <IPostConfigureOptions <TOptions> > postConfigures, Action <TOptions, T> tenantConfig, TenantAccessService <T> tenantService) { _setups = setups; _postConfigures = postConfigures; _tenantService = tenantService; _tenantConfig = tenantConfig; }
public TenantOptionsCache(IConfiguration config, TenantAccessService <TTenant> tenantService) { this._id = tenantService.GetTenantAsync().GetAwaiter().GetResult().Id; this._config = config; ChangeToken.OnChange <ITenantConfigurationMonitor>( () => _config.GetReloadToken(), InvokeChanged, this); }
public MultiTenantV2Controller( TenantAccessService <Tenant> tenantAccessService ) { _tenantAccessService = tenantAccessService; }
public ConfigurationController(IConfigurationService configurationService, TenantAccessService <Tenant> tenantService) { this._configurationService = configurationService; this._tenantService = tenantService; }
public SimpleController(TenantAccessService <Tenant> tenantService, OperationIdService operationIdService, IOptionsSnapshot <Settings> settings) { _tenantService = tenantService; _operationIdService = operationIdService; _settings = settings.Value; }