public GraphiqlMiddleware(
     RequestDelegate next,
     GraphiqlMiddlewareOptions options)
 {
     _next    = next;
     _options = options;
 }
Ejemplo n.º 2
0
        public static IApplicationBuilder UseGraphiql(
            this IApplicationBuilder builder,
            Action <GraphiqlMiddlewareOptions> configure)
        {
            var options = new GraphiqlMiddlewareOptions();

            configure(options);
            return(builder.UseGraphiql(options));
        }
Ejemplo n.º 3
0
 public static IApplicationBuilder UseGraphiql(
     this IApplicationBuilder builder,
     GraphiqlMiddlewareOptions options)
 {
     return(builder.UseMiddleware <GraphiqlMiddleware>(options));
 }