C# Class NSwag.AspNet.Owin.SwaggerMiddleware

Generates a Swagger specification on a given path.
Inheritance: Microsoft.Owin.OwinMiddleware
Mostrar archivo Open project: NSwag/NSwag

Public Methods

Method Description
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.

Protected Methods

Method Description
GenerateSwagger ( IOwinContext context ) : string

Generates the Swagger specification.

Method Details

GenerateSwagger() protected method

Generates the Swagger specification.
protected GenerateSwagger ( IOwinContext context ) : string
context IOwinContext The context.
return string

Invoke() public method

Process an individual request.
public Invoke ( IOwinContext context ) : System.Threading.Tasks.Task
context IOwinContext The context.
return System.Threading.Tasks.Task

SwaggerMiddleware() public method

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.
return System