Пример #1
0
 public GraphQLHttpMiddlewareWithLogs(
     ILogger <GraphQLHttpMiddleware <TSchema> > logger,
     RequestDelegate next,
     IGraphQLRequestDeserializer requestDeserializer)
     : base(next, requestDeserializer)
 {
     _logger = logger;
 }
 public GraphqlLoggingMiddleware(
     RequestDelegate next,
     PathString path,
     IGraphQLRequestDeserializer deserializer,
     ILoggingContextService loggingContextService,
     ILogger logger)
     : base(next, path, deserializer)
 {
     fLoggingContextService = loggingContextService;
     fLogger = logger;
 }
 public GraphQLHttpMiddleware(
     RequestDelegate next,
     PathString path,
     GraphQLSettings settings,
     IGraphQLRequestDeserializer deserializer,
     IEnumerable <IDocumentExecutionListener> listeners,
     IOptions <GraphQLOptions> options,
     IDocumentWriter writer,
     ILoggerFactory loggerFactory)
 {
     _next         = next;
     _path         = path;
     _deserializer = deserializer;
     _options      = options.Value;
     _listeners    = listeners;
     _settings     = settings;
     _writer       = writer;
     _logger       = loggerFactory.CreateLogger <GraphQLHttpMiddleware <TSchema> >();
 }
Пример #4
0
 public GraphQLMiddleware(IGraphQLRequestDeserializer deserializer)
     : base(Noop, deserializer)
 {
 }
Пример #5
0
 public GraphQLRunner(IGraphQLRequestDeserializer deserializer)
 {
     middleware = new GraphQLHttpMiddleware <DummySchema>(x => Task.CompletedTask, deserializer);
 }
Пример #6
0
 public DebugPipelineMiddleware(RequestDelegate next, PathString path, IGraphQLRequestDeserializer requestDeserializer) : base(next, path, requestDeserializer)
 {
     _next = next;
 }
Пример #7
0
 public GraphQLHttpMiddleware(RequestDelegate next, IGraphQLRequestDeserializer deserializer)
 {
     _next         = next;
     _deserializer = deserializer;
 }
Пример #8
0
 public GraphQLHttpMiddleware(RequestDelegate next, PathString path, IGraphQLRequestDeserializer deserializer)
 {
     _next         = next;
     _path         = path;
     _deserializer = deserializer;
 }