コード例 #1
0
 public RequestExecutor(
     ISchema schema,
     DefaultRequestContextAccessor requestContextAccessor,
     IServiceProvider applicationServices,
     IServiceProvider executorServices,
     RequestDelegate requestDelegate,
     BatchExecutor batchExecutor,
     ObjectPool <RequestContext> contextPool,
     ulong version)
 {
     Schema = schema ??
              throw new ArgumentNullException(nameof(schema));
     _requestContextAccessor = requestContextAccessor ??
                               throw new ArgumentNullException(nameof(requestContextAccessor));
     _applicationServices = applicationServices ??
                            throw new ArgumentNullException(nameof(applicationServices));
     Services = executorServices ??
                throw new ArgumentNullException(nameof(executorServices));
     _requestDelegate = requestDelegate ??
                        throw new ArgumentNullException(nameof(requestDelegate));
     _batchExecutor = batchExecutor ??
                      throw new ArgumentNullException(nameof(batchExecutor));
     _contextPool = contextPool ??
                    throw new ArgumentNullException(nameof(contextPool));
     Version = version;
 }
コード例 #2
0
 public RequestExecutor(
     ISchema schema,
     DefaultRequestContextAccessor requestContextAccessor,
     IServiceProvider applicationServices,
     IServiceProvider executorServices,
     IErrorHandler errorHandler,
     ITypeConverter converter,
     IActivator activator,
     IDiagnosticEvents diagnosticEvents,
     RequestDelegate requestDelegate)
 {
     Schema = schema ??
              throw new ArgumentNullException(nameof(schema));
     _requestContextAccessor = requestContextAccessor ??
                               throw new ArgumentNullException(nameof(requestContextAccessor));
     _applicationServices = applicationServices ??
                            throw new ArgumentNullException(nameof(applicationServices));
     Services = executorServices ??
                throw new ArgumentNullException(nameof(executorServices));
     _errorHandler = errorHandler ??
                     throw new ArgumentNullException(nameof(errorHandler));
     _converter = converter ??
                  throw new ArgumentNullException(nameof(converter));
     _activator = activator ??
                  throw new ArgumentNullException(nameof(activator));
     _diagnosticEvents = diagnosticEvents ??
                         throw new ArgumentNullException(nameof(diagnosticEvents));
     _requestDelegate = requestDelegate ??
                        throw new ArgumentNullException(nameof(requestDelegate));
     _batchExecutor = new BatchExecutor(this, errorHandler, converter);
 }