Condividi tramite


IOpenApiDocumentTransformer.TransformAsync Metodo

Definizione

Overload

TransformAsync(OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken)

Origine:
IOpenApiDocumentTransformer.cs

Trasforma il documento OpenAPI specificato.

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

Parametri

document
Microsoft.OpenApi.Models.OpenApiDocument

Oggetto Microsoft.OpenApi.Models.OpenApiDocument da modificare.

context
OpenApiDocumentTransformerContext

Oggetto OpenApiDocumentTransformerContext associato all'oggetto <see paramref="document"></see>.

cancellationToken
CancellationToken

Token di annullamento da usare.

Restituisce

Oggetto attività che rappresenta l'operazione asincrona.

Si applica a

TransformAsync(OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken)

Origine:
IOpenApiDocumentTransformer.cs

Trasforma il documento OpenAPI specificato.

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

Parametri

document
OpenApiDocument

Oggetto OpenApiDocument da modificare.

context
OpenApiDocumentTransformerContext

Oggetto OpenApiDocumentTransformerContext associato all'oggetto <see paramref="document"></see>.

cancellationToken
CancellationToken

Token di annullamento da usare.

Restituisce

Oggetto attività che rappresenta l'operazione asincrona.

Si applica a