C# Класс NSwag.AspNet.Owin.SwaggerMiddleware

Generates a Swagger specification on a given path.
Наследование: Microsoft.Owin.OwinMiddleware
Показать файл Открыть проект

Открытые методы

Метод Описание
Invoke ( IOwinContext context ) : System.Threading.Tasks.Task

Process an individual request.

SwaggerMiddleware ( Microsoft.Owin.OwinMiddleware next, string path, IEnumerable controllerTypes, SwaggerOwinSettings settings, SwaggerJsonSchemaGenerator schemaGenerator ) : System

Initializes a new instance of the SwaggerMiddleware class.

Защищенные методы

Метод Описание
GenerateSwagger ( IOwinContext context ) : string

Generates the Swagger specification.

Описание методов

GenerateSwagger() защищенный Метод

Generates the Swagger specification.
protected GenerateSwagger ( IOwinContext context ) : string
context IOwinContext The context.
Результат string

Invoke() публичный Метод

Process an individual request.
public Invoke ( IOwinContext context ) : System.Threading.Tasks.Task
context IOwinContext The context.
Результат System.Threading.Tasks.Task

SwaggerMiddleware() публичный Метод

Initializes a new instance of the SwaggerMiddleware class.
public SwaggerMiddleware ( Microsoft.Owin.OwinMiddleware next, string path, IEnumerable controllerTypes, SwaggerOwinSettings settings, SwaggerJsonSchemaGenerator schemaGenerator ) : System
next Microsoft.Owin.OwinMiddleware The next middleware.
path string The path.
controllerTypes IEnumerable The controller types.
settings SwaggerOwinSettings The settings.
schemaGenerator SwaggerJsonSchemaGenerator The schema generator.
Результат System