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)); }
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)); }