public GraphQlMiddleware( RequestDelegate next, GraphQlMiddlewareOptions options) { _next = next; _options = options; }
public static IApplicationBuilder UseGraphQl( this IApplicationBuilder builder, Action<GraphQlMiddlewareOptions> configure) { var options = new GraphQlMiddlewareOptions(); configure(options); return builder.UseMiddleware<GraphQlMiddleware>(options); }
public GraphQlMiddleware( RequestDelegate next, ISchemaProvider schemaProvider, GraphQlMiddlewareOptions options) { _next = next ?? throw new ArgumentNullException(nameof(next)); _schemaProvider = schemaProvider ?? throw new ArgumentNullException(nameof(schemaProvider)); _options = options ?? throw new ArgumentNullException(nameof(options)); }
public GraphQlMiddleware( RequestDelegate next, ISchemaProvider schemaProvider, GraphQlMiddlewareOptions options, IDocumentExecuter executer, IEnumerable <IDocumentExecutionListener> executionListeners) { _next = next ?? throw new ArgumentNullException(nameof(next)); _schemaProvider = schemaProvider ?? throw new ArgumentNullException(nameof(schemaProvider)); _options = options ?? throw new ArgumentNullException(nameof(options)); _executer = executer ?? throw new ArgumentNullException(nameof(options)); _executionListeners = executionListeners ?? new IDocumentExecutionListener[0]; }
public static IApplicationBuilder UseGraphQl( this IApplicationBuilder builder, GraphQlMiddlewareOptions options) { return builder.UseMiddleware<GraphQlMiddleware>(options); }