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