コード例 #1
0
        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");
        }
コード例 #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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public AccountController(IConfigurationProvider configurationProvider, IUserAccountDbContext userAccountDbContext)
 {
     _configurationProvider = configurationProvider;
     _userAccountDbContext  = userAccountDbContext;
 }