HeaderChunker.ProcessAsync(IngestionDocument, CancellationToken) Metod

Definition

Delar upp ett dokument i segment asynkront.

public override System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionChunk<string>> ProcessAsync(Microsoft.Extensions.DataIngestion.IngestionDocument document, System.Threading.CancellationToken cancellationToken = default);
override this.ProcessAsync : Microsoft.Extensions.DataIngestion.IngestionDocument * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionChunk<string>>
Public Overrides Function ProcessAsync (document As IngestionDocument, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of IngestionChunk(Of String))

Parametrar

document
IngestionDocument

Dokumentet som ska delas.

cancellationToken
CancellationToken

Token som ska övervakas för annulleringsbegäranden.

Returer

Segmenten som skapats från dokumentet.

Gäller för