Beispiel #1
0
 /// <summary>
 /// Create a new GraphiQLMiddleware
 /// </summary>
 /// <param name="nextMiddleware">The Next Middleware</param>
 /// <param name="settings">The Settings of the Middleware</param>
 public GraphiQLMiddleware(RequestDelegate nextMiddleware, GraphiQLOptions settings)
 {
     this.nextMiddleware = nextMiddleware ?? throw new ArgumentNullException(nameof(nextMiddleware));
     this.settings       = settings ?? throw new ArgumentNullException(nameof(settings));
 }
Beispiel #2
0
 /// <summary>
 /// Create a new <see cref="GraphiQLMiddleware"/>
 /// </summary>
 /// <param name="nextMiddleware">The next middleware</param>
 /// <param name="options">Options to customize middleware</param>
 public GraphiQLMiddleware(RequestDelegate nextMiddleware, GraphiQLOptions options)
 {
     _nextMiddleware = nextMiddleware ?? throw new ArgumentNullException(nameof(nextMiddleware));
     _options        = options ?? throw new ArgumentNullException(nameof(options));
 }