コード例 #1
0
 public ExecuteOperationMiddleware(
     QueryDelegate next,
     IExecutionStrategyResolver strategyResolver,
     Cache <DirectiveLookup> directiveCache)
 {
     _next = next
             ?? throw new ArgumentNullException(nameof(next));
     _strategyResolver = strategyResolver
                         ?? throw new ArgumentNullException(nameof(strategyResolver));
     _directiveCache = directiveCache
                       ?? throw new ArgumentNullException(nameof(directiveCache));
 }
コード例 #2
0
 public ExecuteOperationMiddleware(
     QueryDelegate next,
     IExecutionStrategyResolver strategyResolver,
     Cache <DirectiveMiddlewareCompiler> directiveCache,
     QueryExecutionDiagnostics diagnosticEvents)
 {
     _next = next ??
             throw new ArgumentNullException(nameof(next));
     _strategyResolver = strategyResolver ??
                         throw new ArgumentNullException(nameof(strategyResolver));
     _cache = directiveCache ??
              throw new ArgumentNullException(nameof(directiveCache));
     _diagnosticEvents = diagnosticEvents ??
                         throw new ArgumentNullException(nameof(diagnosticEvents));
 }