Partilhar via


IOpenApiDocumentTransformer.TransformAsync Método

Definição

Sobrecargas

TransformAsync(OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken)

Origem:
IOpenApiDocumentTransformer.cs

Transforma o documento OpenAPI especificado.

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

Parâmetros

document
Microsoft.OpenApi.Models.OpenApiDocument

A Microsoft.OpenApi.Models.OpenApiDocument modificação a ser modificada.

context
OpenApiDocumentTransformerContext

O OpenApiDocumentTransformerContext associado ao <see paramref="document"></see>.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

O objeto de tarefa que representa a operação assíncrona.

Aplica-se a

TransformAsync(OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken)

Origem:
IOpenApiDocumentTransformer.cs
Origem:
IOpenApiDocumentTransformer.cs

Transforma o documento OpenAPI especificado.

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

Parâmetros

document
OpenApiDocument

A OpenApiDocument modificação a ser modificada.

context
OpenApiDocumentTransformerContext

O OpenApiDocumentTransformerContext associado ao <see paramref="document"></see>.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

O objeto de tarefa que representa a operação assíncrona.

Aplica-se a