public OperationExecutionMiddleware( RequestDelegate next, ObjectPool <OperationContext> operationContextPool, QueryExecutor queryExecutor, SubscriptionExecutor subscriptionExecutor, IQueryPlanCache queryPlanCache, [SchemaService] ITransactionScopeHandler transactionScopeHandler) { _next = next ?? throw new ArgumentNullException(nameof(next)); _operationContextPool = operationContextPool ?? throw new ArgumentNullException(nameof(operationContextPool)); _queryExecutor = queryExecutor ?? throw new ArgumentNullException(nameof(queryExecutor)); _subscriptionExecutor = subscriptionExecutor ?? throw new ArgumentNullException(nameof(subscriptionExecutor)); _queryPlanCache = queryPlanCache ?? throw new ArgumentNullException(nameof(queryPlanCache)); _transactionScopeHandler = transactionScopeHandler ?? throw new ArgumentNullException(nameof(transactionScopeHandler)); }
public OperationExecutionMiddleware( RequestDelegate next, IDiagnosticEvents diagnosticEvents, ObjectPool <OperationContext> operationContextPool, QueryExecutor queryExecutor, MutationExecutor mutationExecutor, SubscriptionExecutor subscriptionExecutor) { _next = next ?? throw new ArgumentNullException(nameof(next)); _diagnosticEvents = diagnosticEvents ?? throw new ArgumentNullException(nameof(diagnosticEvents)); _operationContextPool = operationContextPool ?? throw new ArgumentNullException(nameof(operationContextPool)); _queryExecutor = queryExecutor ?? throw new ArgumentNullException(nameof(queryExecutor)); _mutationExecutor = mutationExecutor ?? throw new ArgumentNullException(nameof(mutationExecutor)); _subscriptionExecutor = subscriptionExecutor ?? throw new ArgumentNullException(nameof(subscriptionExecutor)); }