Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 4
0
 public ConfigurationController(IConfigurationService configurationService, TenantAccessService <Tenant> tenantService)
 {
     this._configurationService = configurationService;
     this._tenantService        = tenantService;
 }
Ejemplo n.º 5
0
 public SimpleController(TenantAccessService <Tenant> tenantService, OperationIdService operationIdService, IOptionsSnapshot <Settings> settings)
 {
     _tenantService      = tenantService;
     _operationIdService = operationIdService;
     _settings           = settings.Value;
 }