Class ConfigureSwaggerGenOptions
- Assembly
- Codebelt.Extensions.Swashbuckle.AspNetCore.dll
Represents something that configures the Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenOptions type. Note: These are run before all IPostConfigureOptions<TOptions>.
public class ConfigureSwaggerGenOptions : Configurable<RestfulSwaggerOptions>, IConfigurable<RestfulSwaggerOptions>, IConfigureOptions<SwaggerGenOptions>
- Inheritance
-
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
IApiVersionDescriptionProviderThe 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
SwaggerGenOptionsThe options instance to configure.
See Also
IConfigureOptions<TOptions>