Example #1
0
 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));
 }
Example #2
0
 public DBMigrator(PathOfServicesDbContext dbContext, PathOfServicesConfig config)
 {
     DBContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     Config    = config ?? throw new ArgumentNullException(nameof(config));
 }