Base:
method
ProcessAsync
Microsoft.Extensions.DataIngestion.IngestionChunker<T>.ProcessAsync(Microsoft.Extensions.DataIngestion.IngestionDocument, System.Threading.CancellationToken)
8 references to ProcessAsync
Microsoft.Extensions.DataIngestion.Tests (8)
Chunkers\HeaderChunkerTests.cs (8)
40
IReadOnlyList<IngestionChunk<string>> chunks = await chunker.
ProcessAsync
(doc).ToListAsync();
72
IReadOnlyList<IngestionChunk<string>> chunks = await chunker.
ProcessAsync
(doc).ToListAsync();
97
await Assert.ThrowsAsync<InvalidOperationException>(async () => await lessThanContext.
ProcessAsync
(doc).ToListAsync());
100
await Assert.ThrowsAsync<InvalidOperationException>(async () => await sameAsContext.
ProcessAsync
(doc).ToListAsync());
120
IReadOnlyList<IngestionChunk<string>> chunks = await chunker.
ProcessAsync
(doc).ToListAsync();
138
await Assert.ThrowsAsync<InvalidOperationException>(async () => await chunker.
ProcessAsync
(document).ToListAsync());
147
IReadOnlyList<IngestionChunk<string>> chunks = await chunker.
ProcessAsync
(document).ToListAsync();
177
IReadOnlyList<IngestionChunk<string>> chunks = await chunker.
ProcessAsync
(document).ToListAsync();