Table of Contents

Class OperationFilter

Namespace
Codebelt.Extensions.Swashbuckle.AspNetCore
Assembly
Codebelt.Extensions.Swashbuckle.AspNetCore.dll

Represents the base class of an IOperationFilter implementation.

public abstract class OperationFilter : IOperationFilter
Inheritance
OperationFilter
Implements
Derived

Remarks

Constructors

OperationFilter()

Initializes a new instance of the OperationFilter class.

protected OperationFilter()

Methods

Apply(OpenApiOperation, OperationFilterContext)

Applies post-processing to the operation.

public abstract void Apply(OpenApiOperation operation, OperationFilterContext context)

Parameters

operation OpenApiOperation

The OpenApiOperation to modify.

context OperationFilterContext

The OperationFilterContext that provides additional context.

Remarks

Swashbuckle retrieves an ApiDescription for every action and uses it to generate a corresponding OpenApiOperation.

See Also