IngestionChunker<T>.ProcessAsync Metodo

Definizione

Suddivide un documento in blocchi in modo asincrono.

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

Parametri

document
IngestionDocument

Documento da dividere.

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento.

Valori restituiti

Blocchi creati dal documento.

Si applica a