Table of Contents

Class UserAgentDocumentFilter

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

Provides a User-Agent field to the generated Microsoft.OpenApi.Models.OpenApiDocument.

public class UserAgentDocumentFilter : DocumentFilter<UserAgentDocumentOptions>, IDocumentFilter, IConfigurable<UserAgentDocumentOptions>
Inheritance
Object
UserAgentDocumentFilter
Implements
IDocumentFilter
Inherited Members

Remarks

Constructors

UserAgentDocumentFilter(UserAgentDocumentOptions)

Initializes a new instance of the UserAgentDocumentFilter class.

public UserAgentDocumentFilter(UserAgentDocumentOptions options)

Parameters

options UserAgentDocumentOptions

The configured options of this instance.

Methods

Apply(OpenApiDocument, DocumentFilterContext)

Applies post-processing to the swaggerDoc.

public override void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)

Parameters

swaggerDoc OpenApiDocument

The Microsoft.OpenApi.Models.OpenApiDocument to modify.

context DocumentFilterContext

The Swashbuckle.AspNetCore.SwaggerGen.DocumentFilterContext that provides additional context.

Remarks

Once an Microsoft.OpenApi.Models.OpenApiDocument has been generated you have full control to modify the document however you see fit.

See Also