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