Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public JsonQLMiddleware(
     JsonQLOptions jsonQLOptions,
     JsonQLResourceTable jsonQLResourceTable)
 {
     this.jsonQLOptions       = jsonQLOptions ?? throw new ArgumentNullException(nameof(jsonQLOptions));
     this.jsonQLResourceTable = jsonQLResourceTable ?? throw new ArgumentNullException(nameof(jsonQLResourceTable));
 }
Exemplo n.º 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));
 }