C# Class NSwag.CodeGeneration.SwaggerGenerators.WebApi.Processors.Security.SecurityDefinitionAppender

Appends the OAuth2 security scheme to the document's security definitions.
Inheritance: IDocumentProcessor
Exibir arquivo Open project: NSwag/NSwag

Public Methods

Method Description
Process ( DocumentProcessorContext context ) : void

Processes the specified Swagger document.

SecurityDefinitionAppender ( string name, SwaggerSecurityScheme swaggerSecurityScheme ) : NSwag.CodeGeneration.SwaggerGenerators.WebApi.Processors.Contexts

Initializes a new instance of the SecurityDefinitionAppender class.

Method Details

Process() public method

Processes the specified Swagger document.
public Process ( DocumentProcessorContext context ) : void
context DocumentProcessorContext
return void

SecurityDefinitionAppender() public method

Initializes a new instance of the SecurityDefinitionAppender class.
public SecurityDefinitionAppender ( string name, SwaggerSecurityScheme swaggerSecurityScheme ) : NSwag.CodeGeneration.SwaggerGenerators.WebApi.Processors.Contexts
name string The name/key of the security scheme/definition.
swaggerSecurityScheme SwaggerSecurityScheme The Swagger security scheme.
return NSwag.CodeGeneration.SwaggerGenerators.WebApi.Processors.Contexts