public ConfigBasedStoreInitializer(
            EntityFrameworkOptions options,
            ApplicationOptions appOptions,
            ILogger <ConfigBasedStoreInitializer> logger,
            MigrationDbContext migrationDbContext,
            IConfigurationDbContext configurationDbContext,
            IPersistedGrantDbContext persistedGrantDbContext,
            IUserAccountDbContext userAccountDbContext,
            IHostingEnvironment environment,
            IServiceProvider serviceProvider)
        {
            this._options                 = options;
            this._appOptions              = appOptions;
            this._logger                  = logger;
            this._migrationDbContext      = migrationDbContext;
            this._configurationDbContext  = configurationDbContext;
            this._persistedGrantDbContext = persistedGrantDbContext;
            this._userAccountDbContext    = userAccountDbContext;
            this._environment             = environment;

            this._serviceProvider = serviceProvider ??
                                    throw new ArgumentNullException(nameof(serviceProvider));

            this._logger.LogDebug("ConfigBasedStoreInitializer initialized");
        }
Beispiel #2
0
 public DefaultStoreInitializer(
     EntityFrameworkOptions options,
     ILogger <DefaultStoreInitializer> logger,
     DefaultDbContext defaultDbContext,
     IConfigurationDbContext configurationDbContext,
     IPersistedGrantDbContext persistedGrantDbContext,
     IUserAccountDbContext userAccountDbContext)
 {
     _options                 = options;
     _logger                  = logger;
     _defaultDbContext        = defaultDbContext;
     _configurationDbContext  = configurationDbContext;
     _persistedGrantDbContext = persistedGrantDbContext;
     _userAccountDbContext    = userAccountDbContext;
 }
 public ExampleDataStoreInitializer(
     EntityFrameworkOptions options,
     ApplicationOptions appOptions,
     ILogger <ConfigBasedStoreInitializer> logger,
     MigrationDbContext migrationDbContext,
     IConfigurationDbContext configurationDbContext,
     IPersistedGrantDbContext persistedGrantDbContext,
     IUserAccountDbContext userAccountDbContext,
     ICrypto crypto)
 {
     this.options                 = options;
     this.appOptions              = appOptions;
     this.logger                  = logger;
     this.migrationDbContext      = migrationDbContext;
     this.configurationDbContext  = configurationDbContext;
     this.persistedGrantDbContext = persistedGrantDbContext;
     this.userAccountDbContext    = userAccountDbContext;
     this.crypto                  = crypto;
 }
Beispiel #4
0
 public AccountController(IConfigurationProvider configurationProvider, IUserAccountDbContext userAccountDbContext)
 {
     _configurationProvider = configurationProvider;
     _userAccountDbContext  = userAccountDbContext;
 }