/// <summary> /// Initializes a new instance of the <see cref="CustomHttpProcessor"/> class. /// </summary> /// <param name="schema">The schema instance.</param> /// <param name="graphqlRunTime">The graphql runtime for the schema.</param> /// <param name="writer">The serializer to turn a response into json.</param> /// <param name="logger">The logger instance to use for recording events.</param> public CustomHttpProcessor( GraphSchema schema, IGraphQLRuntime <GraphSchema> graphqlRunTime, IGraphResponseWriter <GraphSchema> writer, IGraphEventLogger logger = null) : base(schema, graphqlRunTime, writer, logger) { }
/// <summary> /// Initializes a new instance of the <see cref="SecureGraphQLHttpProcessor{TSchema}" /> class. /// </summary> /// <param name="schema">The schema.</param> /// <param name="runtime">The runtime.</param> /// <param name="writer">The writer.</param> /// <param name="logger">The logger.</param> public SecureGraphQLHttpProcessor( TSchema schema, IGraphQLRuntime <TSchema> runtime, IGraphResponseWriter <TSchema> writer, IGraphEventLogger logger = null) : base(schema, runtime, writer, logger) { }
/// <summary> /// Initializes a new instance of the <see cref="DefaultGraphQLHttpProcessor{TSchema}" /> class. /// </summary> /// <param name="schema">The singleton instance of <typeparamref name="TSchema"/> representing this processor works against.</param> /// <param name="runtime">The primary runtime instance in which GraphQL requests are processed for <typeparamref name="TSchema"/>.</param> /// <param name="writer">The result writer capable of converting a <see cref="IGraphOperationResult"/> into a serialized payload /// for the given <typeparamref name="TSchema"/>.</param> /// <param name="logger">A logger instance where this object can write and record log entries.</param> public DefaultGraphQLHttpProcessor( TSchema schema, IGraphQLRuntime <TSchema> runtime, IGraphResponseWriter <TSchema> writer, IGraphEventLogger logger = null) { _schema = Validation.ThrowIfNullOrReturn(schema, nameof(schema)); _runtime = Validation.ThrowIfNullOrReturn(runtime, nameof(runtime)); _writer = Validation.ThrowIfNullOrReturn(writer, nameof(writer)); _logger = logger; }