Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="jsonQLResourceTable"></param>
 /// <param name="options"></param>
 public JsonQLHandler(
     JsonQLOptions options,
     JsonQLResourceTable jsonQLResourceTable)
 {
     this.options             = options ?? throw new ArgumentNullException(nameof(options));
     this.jsonQLResourceTable = jsonQLResourceTable ?? throw new ArgumentNullException(nameof(jsonQLResourceTable));
 }
Example #2
0
 public JsonQLMiddleware(
     JsonQLOptions jsonQLOptions,
     JsonQLResourceTable jsonQLResourceTable)
 {
     this.jsonQLOptions       = jsonQLOptions ?? throw new ArgumentNullException(nameof(jsonQLOptions));
     this.jsonQLResourceTable = jsonQLResourceTable ?? throw new ArgumentNullException(nameof(jsonQLResourceTable));
 }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="jsonQLResourceTable"></param>
 /// <param name="jsonQLOptions"></param>
 public JsonQLMiddleware(
     IOptions <JsonQLOptions> jsonQLOptions,
     JsonQLResourceTable jsonQLResourceTable)
 {
     if (jsonQLOptions == null)
     {
         throw new ArgumentNullException(nameof(jsonQLOptions));
     }
     this.jsonQLOptions       = jsonQLOptions.Value;
     this.jsonQLResourceTable = jsonQLResourceTable ?? throw new ArgumentNullException(nameof(jsonQLResourceTable));
 }
Example #4
0
 public JsonQLRequest(HttpContext httpContext, JsonQLOptions options)
 {
     this.HttpContext = httpContext;
     this.options     = options;
 }