Share via


IOpenApiOperationTransformer.TransformAsync Method

Definition

Overloads

TransformAsync(OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken)

Source:
IOpenApiOperationTransformer.cs

Transforms the specified OpenAPI operation.

public System.Threading.Tasks.Task TransformAsync(Microsoft.OpenApi.Models.OpenApiOperation operation, Microsoft.AspNetCore.OpenApi.OpenApiOperationTransformerContext context, System.Threading.CancellationToken cancellationToken);
abstract member TransformAsync : Microsoft.OpenApi.Models.OpenApiOperation * Microsoft.AspNetCore.OpenApi.OpenApiOperationTransformerContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TransformAsync (operation As OpenApiOperation, context As OpenApiOperationTransformerContext, cancellationToken As CancellationToken) As Task

Parameters

operation
OpenApiOperation

The OpenApiOperation to modify.

context
OpenApiOperationTransformerContext

The OpenApiOperationTransformerContext associated with the <see paramref="operation"></see>.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The task object representing the asynchronous operation.

Applies to

TransformAsync(OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken)

Source:
IOpenApiOperationTransformer.cs

Transforms the specified OpenAPI operation.

public System.Threading.Tasks.Task TransformAsync(Microsoft.OpenApi.OpenApiOperation operation, Microsoft.AspNetCore.OpenApi.OpenApiOperationTransformerContext context, System.Threading.CancellationToken cancellationToken);
abstract member TransformAsync : Microsoft.OpenApi.OpenApiOperation * Microsoft.AspNetCore.OpenApi.OpenApiOperationTransformerContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TransformAsync (operation As OpenApiOperation, context As OpenApiOperationTransformerContext, cancellationToken As CancellationToken) As Task

Parameters

operation
Microsoft.OpenApi.OpenApiOperation

The Microsoft.OpenApi.OpenApiOperation to modify.

context
OpenApiOperationTransformerContext

The OpenApiOperationTransformerContext associated with the <see paramref="operation"></see>.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The task object representing the asynchronous operation.

Applies to