Пример #1
0
        public SwaggerUiMiddleware(
            RequestDelegate next,
            SwaggerPathHelper swaggerPathHelper,
            string routeTemplate)
        {
            _next = next;
            _swaggerPathHelper = swaggerPathHelper;

            _requestMatcher = new TemplateMatcher(TemplateParser.Parse(routeTemplate), null);
            _resourceAssembly = GetType().GetTypeInfo().Assembly;
        }
Пример #2
0
        public SwaggerUiMiddleware(
            RequestDelegate next,
            SwaggerPathHelper swaggerPathHelper,
            string routeTemplate)
        {
            _next = next;
            _swaggerPathHelper = swaggerPathHelper;

            _requestMatcher   = new TemplateMatcher(TemplateParser.Parse(routeTemplate), new RouteValueDictionary());
            _resourceAssembly = GetType().GetTypeInfo().Assembly;
        }
Пример #3
0
 public SwaggerUiController(SwaggerPathHelper swaggerPathHelper)
 {
     _swaggerPathHelper = swaggerPathHelper;
 }