Table of Contents

Class ConfigureSwaggerGenOptions

Namespace
Cuemon.Extensions.Swashbuckle.AspNetCore
Assembly
Cuemon.Extensions.Swashbuckle.AspNetCore.dll

Represents something that configures the Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenOptions type. Note: These are run before all Microsoft.Extensions.Options.IPostConfigureOptions`1.

public class ConfigureSwaggerGenOptions : Configurable<RestfulSwaggerOptions>, IConfigurable<RestfulSwaggerOptions>, IConfigureOptions<SwaggerGenOptions>
Inheritance
Object
ConfigureSwaggerGenOptions
Implements
IConfigureOptions<SwaggerGenOptions>
Inherited Members

Constructors

ConfigureSwaggerGenOptions(IApiVersionDescriptionProvider, IOptions<RestfulSwaggerOptions>)

Initializes a new instance of the ConfigureSwaggerGenOptions class.

public ConfigureSwaggerGenOptions(IApiVersionDescriptionProvider provider, IOptions<RestfulSwaggerOptions> restfulSwaggerOptions)

Parameters

provider IApiVersionDescriptionProvider

The behavior of a provider that discovers and describes API version information within an application.

restfulSwaggerOptions IOptions<RestfulSwaggerOptions>

The options for configuring the Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenOptions.

Methods

Configure(SwaggerGenOptions)

Invoked to configure a Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenOptions instance.

public void Configure(SwaggerGenOptions options)

Parameters

options SwaggerGenOptions

The options instance to configure.

See Also

IConfigureOptions<TOptions>