语言

IngestionDocumentProcessor.ProcessAsync 方法

定义

处理给定的引入文档。

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)

参数

document
IngestionDocument

要处理的引入文档。

cancellationToken
CancellationToken

用于监视取消请求的令牌。

返回

表示异步处理操作的任务,结果为已处理文档。

适用于