Share via


OpenApiOptions.AddOperationTransformer Method

Definition

Overloads

AddOperationTransformer(IOpenApiOperationTransformer)

Registers a given instance of IOpenApiOperationTransformer on the current OpenApiOptions instance.

AddOperationTransformer(Func<OpenApiOperation,OpenApiOperationTransformerContext,CancellationToken,Task>)

Registers a given delegate as an operation transformer on the current OpenApiOptions instance.

AddOperationTransformer<TTransformerType>()

Registers a new operation transformer on the current OpenApiOptions instance.

AddOperationTransformer(IOpenApiOperationTransformer)

Source:
OpenApiOptions.cs

Registers a given instance of IOpenApiOperationTransformer on the current OpenApiOptions instance.

public Microsoft.AspNetCore.OpenApi.OpenApiOptions AddOperationTransformer (Microsoft.AspNetCore.OpenApi.IOpenApiOperationTransformer transformer);
member this.AddOperationTransformer : Microsoft.AspNetCore.OpenApi.IOpenApiOperationTransformer -> Microsoft.AspNetCore.OpenApi.OpenApiOptions
Public Function AddOperationTransformer (transformer As IOpenApiOperationTransformer) As OpenApiOptions

Parameters

Returns

The OpenApiOptions instance for further customization.

Applies to

AddOperationTransformer(Func<OpenApiOperation,OpenApiOperationTransformerContext,CancellationToken,Task>)

Source:
OpenApiOptions.cs

Registers a given delegate as an operation transformer on the current OpenApiOptions instance.

public Microsoft.AspNetCore.OpenApi.OpenApiOptions AddOperationTransformer (Func<Microsoft.OpenApi.Models.OpenApiOperation,Microsoft.AspNetCore.OpenApi.OpenApiOperationTransformerContext,System.Threading.CancellationToken,System.Threading.Tasks.Task> transformer);
member this.AddOperationTransformer : Func<Microsoft.OpenApi.Models.OpenApiOperation, Microsoft.AspNetCore.OpenApi.OpenApiOperationTransformerContext, System.Threading.CancellationToken, System.Threading.Tasks.Task> -> Microsoft.AspNetCore.OpenApi.OpenApiOptions
Public Function AddOperationTransformer (transformer As Func(Of OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task)) As OpenApiOptions

Parameters

transformer
Func<OpenApiOperation,OpenApiOperationTransformerContext,CancellationToken,Task>

The delegate representing the operation transformer.

Returns

The OpenApiOptions instance for further customization.

Applies to

AddOperationTransformer<TTransformerType>()

Source:
OpenApiOptions.cs

Registers a new operation transformer on the current OpenApiOptions instance.

public Microsoft.AspNetCore.OpenApi.OpenApiOptions AddOperationTransformer<TTransformerType> () where TTransformerType : Microsoft.AspNetCore.OpenApi.IOpenApiOperationTransformer;
member this.AddOperationTransformer : unit -> Microsoft.AspNetCore.OpenApi.OpenApiOptions (requires 'ransformerType :> Microsoft.AspNetCore.OpenApi.IOpenApiOperationTransformer)
Public Function AddOperationTransformer(Of TTransformerType As IOpenApiOperationTransformer) () As OpenApiOptions

Type Parameters

TTransformerType

The type of the IOpenApiOperationTransformer to instantiate.

Returns

The OpenApiOptions instance for further customization.

Applies to