Share via


IOpenApiDocumentTransformer.TransformAsync Method

Definition

Overloads

TransformAsync(OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken)

Source:
IOpenApiDocumentTransformer.cs

Transforms the specified OpenAPI document.

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

Parameters

document
OpenApiDocument

The OpenApiDocument to modify.

context
OpenApiDocumentTransformerContext

The OpenApiDocumentTransformerContext associated with the <see paramref="document"></see>.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The task object representing the asynchronous operation.

Applies to

TransformAsync(OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken)

Source:
IOpenApiDocumentTransformer.cs

Transforms the specified OpenAPI document.

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

Parameters

document
Microsoft.OpenApi.OpenApiDocument

The Microsoft.OpenApi.OpenApiDocument to modify.

context
OpenApiDocumentTransformerContext

The OpenApiDocumentTransformerContext associated with the <see paramref="document"></see>.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The task object representing the asynchronous operation.

Applies to