Base:
method
ExtractAsync
Microsoft.Extensions.DocumentExtraction.DocumentExtractionClient.ExtractAsync(System.IO.Stream, System.String, System.String, Microsoft.Extensions.DocumentExtraction.DocumentExtractionOptions, System.Threading.CancellationToken)
2 overrides of ExtractAsync
Microsoft.Extensions.DocumentExtraction (1)
LoggingDocumentExtractionClient.cs (1)
30public override async Task<ExtractionDocument> ExtractAsync(
Microsoft.Extensions.DocumentExtraction.Tests (1)
DocumentExtractionMiddlewareTests.cs (1)
667public override async Task<ExtractionDocument> ExtractAsync(Stream document, string identifier, string mediaType,
13 references to ExtractAsync
Microsoft.Extensions.DocumentExtraction (1)
LoggingDocumentExtractionClient.cs (1)
42result = await base.ExtractAsync(document, identifier, mediaType, options, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.DocumentExtraction.Abstractions.Tests (11)
DelegatingDocumentExtractionClientTests.cs (11)
73ExtractionDocument actual = await wrapper.ExtractAsync(input, "urn:document", "application/pdf", cancellationToken: cancellation.Token); 97Assert.Throws<ArgumentNullException>("document", () => { _ = wrapper.ExtractAsync(null!, "document", "application/pdf"); }); 98Assert.Throws<ArgumentNullException>("identifier", () => { _ = wrapper.ExtractAsync(input, null!, "application/pdf"); }); 99Assert.Throws<ArgumentException>("identifier", () => { _ = wrapper.ExtractAsync(input, "", "application/pdf"); }); 100Assert.Throws<ArgumentNullException>("mediaType", () => { _ = wrapper.ExtractAsync(input, "document", null!); }); 101Assert.Throws<ArgumentException>("mediaType", () => { _ = wrapper.ExtractAsync(input, "document", ""); }); 123Task<ExtractionDocument> pending = wrapper.ExtractAsync(input, "document", "application/pdf", options); 155Assert.Same(expected, await wrapper.ExtractAsync(input, "first", "application/pdf")); 158Assert.Same(expected, await wrapper.ExtractAsync(input, "second", "application/pdf", explicitOptions)); 161Assert.Same(expected, await wrapper.ExtractAsync(input, "third", "application/pdf", null)); 178wrapper.ExtractAsync(input, "document", "application/pdf", cancellationToken: cancellation.Token));
Microsoft.Extensions.DocumentExtraction.Tests (1)
DocumentExtractionMiddlewareTests.cs (1)
676ExtractionDocument result = await base.ExtractAsync(document, identifier, mediaType, options, cancellationToken);