public UserRepository( SqlCeConnectionStringResolver connectionStringResolver, IOptions <MultiTenantOptions> multiTenantOptions, ILoggerFactory loggerFactory) { if (multiTenantOptions == null) { throw new ArgumentNullException(nameof(multiTenantOptions)); } if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } if (connectionStringResolver == null) { throw new ArgumentNullException(nameof(connectionStringResolver)); } this.multiTenantOptions = multiTenantOptions.Options; logFactory = loggerFactory; log = loggerFactory.CreateLogger(typeof(UserRepository).FullName); connectionString = connectionStringResolver.Resolve(); dbSiteUser = new DBSiteUser(connectionString, logFactory); dbUserLogins = new DBUserLogins(connectionString, logFactory); dbUserClaims = new DBUserClaims(connectionString, logFactory); dbUserLocation = new DBUserLocation(connectionString, logFactory); dbRoles = new DBRoles(connectionString, logFactory); }
public UserRepository( SqlCeConnectionStringResolver connectionStringResolver, ILoggerFactory loggerFactory) { if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } if (connectionStringResolver == null) { throw new ArgumentNullException(nameof(connectionStringResolver)); } logFactory = loggerFactory; log = loggerFactory.CreateLogger(typeof(UserRepository).FullName); connectionString = connectionStringResolver.Resolve(); dbSiteUser = new DBSiteUser(connectionString, logFactory); dbUserLogins = new DBUserLogins(connectionString, logFactory); dbUserClaims = new DBUserClaims(connectionString, logFactory); dbUserLocation = new DBUserLocation(connectionString, logFactory); dbRoles = new DBRoles(connectionString, logFactory); }