public OAuthController(PathOfServicesConfig config, IMemoryCache memory, PathOfServicesDbContext dbContext, UserManager <UserEntity> userManager) { Config = config ?? throw new ArgumentNullException(nameof(config)); Memory = memory; DBContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); UserManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); }
public DBMigrator(PathOfServicesDbContext dbContext, PathOfServicesConfig config) { DBContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); Config = config ?? throw new ArgumentNullException(nameof(config)); }