public OpenRpcGenerator(IOptions <JsonRpcOptions> jsorRpcOptions, IOptions <OpenRpcOptions> options, IApiDescriptionGroupCollectionProvider apiDescriptionsProvider, ContentDescriptorGenerator contentDescriptorGenerator) { this.options = options.Value; this.jsonRpcOptions = jsorRpcOptions.Value; this.apiDescriptionsProvider = apiDescriptionsProvider; this.contentDescriptorGenerator = contentDescriptorGenerator; }
public OpenRpcMiddleware(RequestDelegate next, IOptions <OpenRpcOptions> options) { this.next = next; this.options = options.Value; requestMatcher = new TemplateMatcher(TemplateParser.Parse(options.Value.DocumentPath), new RouteValueDictionary()); }