AddUserAgent Method
Definition
- Namespace
- Codebelt.Extensions.Swashbuckle.AspNetCore
- Assemblies
- Codebelt.Extensions.Swashbuckle.AspNetCore.dll
AddUserAgent(SwaggerGenOptions, Action<UserAgentDocumentOptions>)
Adds an UserAgentDocumentFilter to the DocumentFilterDescriptors.
public static SwaggerGenOptions AddUserAgent(this SwaggerGenOptions options, Action<UserAgentDocumentOptions> setup = null)
Parameters
optionsSwaggerGenOptionsThe SwaggerGenOptions to extend.
setupAction<UserAgentDocumentOptions>The UserAgentDocumentOptions that may be configured.
Returns
- SwaggerGenOptions
A reference to
optionsso that additional calls can be chained.