public IndexModel( IAdminServices adminServices, ISessionTenantAccessor sessionTenantAccessor, IOptions <IdentityServerDefaultOptions> options, ITenantAwareConfigurationDbContextAccessor tenantAwareConfigurationDbContextAccessor, ILogger <IndexModel> logger) { _adminServices = adminServices; _sessionTenantAccessor = sessionTenantAccessor; _options = options.Value; _tenantAwareConfigurationDbContextAccessor = tenantAwareConfigurationDbContextAccessor; _logger = logger; }
public TenantAwareTokenCleanupService( OperationalStoreOptions options, IAdminServices adminServices, ITenantAwareConfigurationDbContextAccessor tenantAwareConfigurationDbContextAccessor, ILogger <TenantAwareTokenCleanupService> logger, IOperationalStoreNotification operationalStoreNotification = null) { _options = options; _adminServices = adminServices; _tenantAwareConfigurationDbContextAccessor = tenantAwareConfigurationDbContextAccessor; _logger = logger; _operationalStoreNotification = operationalStoreNotification; }
public EntityFrameworkPersistedGrantStoreEx( IScopedHttpContextRequestForm scopedHttpContextRequestForm, IScopedContext <TenantRequestContext> scopedTenantRequestContext, IScopedStorage scopedStorage, IAdminServices adminServices, IEntityFrameworkMapperAccessor entityFrameworkMapperAccessor, ITenantAwareConfigurationDbContextAccessor tenantAwareConfigurationDbContextAccessor, ILogger <EntityFrameworkPersistedGrantStoreEx> logger) { _scopedHttpContextRequestForm = scopedHttpContextRequestForm; _scopedTenantRequestContext = scopedTenantRequestContext; _scopedStorage = scopedStorage; _adminServices = adminServices; _entityFrameworkMapperAccessor = entityFrameworkMapperAccessor; _tenantAwareConfigurationDbContextAccessor = tenantAwareConfigurationDbContextAccessor; Logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="DeviceFlowStore"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="serializer">The serializer</param> /// <param name="logger">The logger.</param> public EntityFrameworkDeviceFlowStoreExtra( IScopedContext <TenantRequestContext> scopedTenantRequestContext, ITenantAwareConfigurationDbContextAccessor tenantAwareConfigurationDbContextAccessor, IPersistentGrantSerializer serializer, ICoreMapperAccessor coreMapperAccessor, ILogger <EntityFrameworkDeviceFlowStoreExtra> logger) { _scopedTenantRequestContext = scopedTenantRequestContext; _tenantAwareConfigurationDbContextAccessor = tenantAwareConfigurationDbContextAccessor; var tenant = _scopedTenantRequestContext.Context.TenantName; Context = _tenantAwareConfigurationDbContextAccessor.GetTenantAwareConfigurationDbContext(tenant); Serializer = serializer; _coreMapperAccessor = coreMapperAccessor; Logger = logger; }