예제 #1
0
 public ScopeStore(SamDbContext samDbContext, IOptions <StoreOptions> storeOptions)
 {
     _samDbContext = samDbContext ?? throw new ArgumentNullException(nameof(samDbContext));
     _storeOptions = storeOptions.Value ?? throw new ArgumentNullException(nameof(storeOptions.Value));
     _scopes       = _samDbContext.AuthorizationScopes ?? throw new ArgumentNullException(nameof(samDbContext));
 }
예제 #2
0
 public RegisterStore(SamDbContext samDbContext, IOptions <StoreOptions> storeOptions)
 {
     _samDbContext = samDbContext ?? throw new ArgumentNullException(nameof(samDbContext));
     _storeOptions = storeOptions.Value ?? throw new ArgumentNullException(nameof(storeOptions.Value));
     _registers    = _samDbContext.Registers ?? throw new ArgumentNullException(nameof(samDbContext));
 }