4 overrides of ReadAsync
Microsoft.Extensions.DataIngestion.Markdig (1)
MarkdownReader.cs (1)
32public override async Task<IngestionDocument> ReadAsync(Stream source, string identifier, string mediaType, CancellationToken cancellationToken = default)
Microsoft.Extensions.DataIngestion.MarkItDown (2)
MarkItDownMcpReader.cs (1)
68public override async Task<IngestionDocument> ReadAsync(Stream source, string identifier, string mediaType, CancellationToken cancellationToken = default)
MarkItDownReader.cs (1)
97public override async Task<IngestionDocument> ReadAsync(Stream source, string identifier, string mediaType, CancellationToken cancellationToken = default)
Microsoft.Extensions.DataIngestion.Tests (1)
Utils\TestReader.cs (1)
20public override Task<IngestionDocument> ReadAsync(Stream source, string identifier, string mediaType, CancellationToken cancellationToken = default)
7 references to ReadAsync
Microsoft.Extensions.DataIngestion.Abstractions (1)
IngestionDocumentReader.cs (1)
45return await ReadAsync(stream, identifier, string.IsNullOrEmpty(mediaType) ? GetMediaType(source) : mediaType!, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.DataIngestion.Tests (6)
Readers\DocumentReaderConformanceTests.cs (5)
31await Assert.ThrowsAsync<ArgumentNullException>("identifier", async () => await reader.ReadAsync(stream, identifier: null!, mediaType: "some")); 32await Assert.ThrowsAsync<ArgumentException>("identifier", async () => await reader.ReadAsync(stream, identifier: string.Empty, mediaType: "some")); 43await Assert.ThrowsAsync<TaskCanceledException>(async () => await reader.ReadAsync(stream, "id", "mediaType", cts.Token)); 83IngestionDocument document = await CreateDocumentReader().ReadAsync( 144var document = await CreateDocumentReader().ReadAsync(wordDoc, "doc", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
Readers\MarkdownReaderTests.cs (1)
139return await CreateDocumentReader().ReadAsync(stream, "id", "text/markdown");