public JsonqlTesterSchemaMIddleware( JsonqlOptions jsonqlOptions, JsonqlTesterOptions jsonqlTesterOptions, string jsonSchemaPath) { this.jsonqlOptions = jsonqlOptions; this.jsonqlTesterOptions = jsonqlTesterOptions; this.jsonSchemaPath = jsonSchemaPath; }
/// <summary> /// /// </summary> /// <param name="next"></param> /// <param name="jsonqlOptions"></param> /// <param name="jsonqlTesterOptions"></param> /// <param name="jsonSchemaPath"></param> public JsonqlTesterSchemaMIddleware( RequestDelegate next, IOptions <JsonqlOptions> jsonqlOptions, JsonqlTesterOptions jsonqlTesterOptions, string jsonSchemaPath) { this.next = next; this.jsonqlOptions = jsonqlOptions.Value; this.jsonqlTesterOptions = jsonqlTesterOptions; this.requestMatcher = new TemplateMatcher(TemplateParser.Parse(jsonSchemaPath), new RouteValueDictionary()); }