Lenguaje

IngestionChunkProcessor<T>.ProcessAsync Método

Definición

Procesa fragmentos de forma asincrónica.

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

Parámetros

chunks
IAsyncEnumerable<IngestionChunk<T>>

Fragmentos que se van a procesar.

cancellationToken
CancellationToken

Token que se va a supervisar para las solicitudes de cancelación.

Devoluciones

Fragmentos procesados.

Se aplica a