Share via


IngestionDocumentProcessor.ProcessAsync Method

Definition

Processes the given ingestion document.

public abstract System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument> ProcessAsync(Microsoft.Extensions.DataIngestion.IngestionDocument document, System.Threading.CancellationToken cancellationToken = default);
abstract member ProcessAsync : Microsoft.Extensions.DataIngestion.IngestionDocument * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument>
Public MustOverride Function ProcessAsync (document As IngestionDocument, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IngestionDocument)

Parameters

document
IngestionDocument

The ingestion document to process.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

A task representing the asynchronous processing operation, with the processed document as the result.

Applies to