public SwaggerUiMiddleware( RequestDelegate next, SwaggerPathHelper swaggerPathHelper, string routeTemplate) { _next = next; _swaggerPathHelper = swaggerPathHelper; _requestMatcher = new TemplateMatcher(TemplateParser.Parse(routeTemplate), null); _resourceAssembly = GetType().GetTypeInfo().Assembly; }
public SwaggerUiMiddleware( RequestDelegate next, SwaggerPathHelper swaggerPathHelper, string routeTemplate) { _next = next; _swaggerPathHelper = swaggerPathHelper; _requestMatcher = new TemplateMatcher(TemplateParser.Parse(routeTemplate), new RouteValueDictionary()); _resourceAssembly = GetType().GetTypeInfo().Assembly; }
public SwaggerUiController(SwaggerPathHelper swaggerPathHelper) { _swaggerPathHelper = swaggerPathHelper; }