コード例 #1
0
 public DocumentService(
     ILogger logger,
     EntityContext context,
     IEntityQueries queries,
     IEntityCommands commands,
     ISecurityDisablerService securityDisabler)
 {
     _logger           = logger ?? throw new ArgumentNullException(nameof(logger));
     _context          = context ?? throw new ArgumentNullException(nameof(context));
     _queries          = queries ?? throw new ArgumentNullException(nameof(queries));
     _commands         = commands ?? throw new ArgumentNullException(nameof(commands));
     _securityDisabler = securityDisabler;
 }
コード例 #2
0
 public SecurityRuleEvaluator(
     ISecurityDisablerService securityDisabler,
     ISecurityRulesFinder <TContext> rulesFinder,
     ISecurityRuleMatcher <TContext> rulesMatcher,
     ISecurityContext <TContext> securityContext,
     ISecurityOptions <TContext> securityOptions)
 {
     _securityDisabler = securityDisabler ?? throw new ArgumentNullException(nameof(securityDisabler));
     _rulesFinder      = rulesFinder ?? throw new ArgumentNullException(nameof(rulesFinder));
     _rulesMatcher     = rulesMatcher ?? throw new ArgumentNullException(nameof(rulesMatcher));
     _securityContext  = securityContext ?? throw new ArgumentNullException(nameof(securityContext));
     _securityOptions  = securityOptions ?? throw new ArgumentNullException(nameof(securityOptions));
 }
コード例 #3
0
 public EntityContextServices(
     ILogger <TContext> logger,
     ICollectionService <TContext> collectionsService,
     EntityQueries <TContext> queries,
     EntityCommands <TContext> commands,
     EntityConfigurator <TContext> configurator,
     IEntityPropertyResolver <TContext> propertyResolver,
     IPathBuilder <TContext> pathBuilder,
     EntityContextInitializer <TContext> initializer,
     IEntityNotificationService <TContext> notificationService,
     ISecurityDisablerService securityDisablerService)
 {
     Logger                  = logger;
     Collections             = collectionsService ?? throw new ArgumentException(nameof(collectionsService));
     Queries                 = queries ?? throw new ArgumentNullException(nameof(queries));
     Commands                = commands ?? throw new ArgumentNullException(nameof(commands));
     Configurator            = configurator ?? throw new ArgumentNullException(nameof(configurator));
     PropertyResolver        = propertyResolver ?? throw new ArgumentNullException(nameof(propertyResolver));
     PathBuilder             = pathBuilder ?? throw new ArgumentNullException(nameof(pathBuilder));
     Initializer             = initializer ?? throw new ArgumentNullException(nameof(initializer));
     NotificationService     = notificationService ?? throw new ArgumentNullException(nameof(notificationService));
     SecurityDisablerService = securityDisablerService ?? throw new ArgumentNullException(nameof(securityDisablerService));
 }