3 overrides of GetService
Microsoft.Extensions.DocumentExtraction.Abstractions (1)
DelegatingDocumentExtractionClient.cs (1)
47public override object? GetService(Type serviceType, object? serviceKey = null)
Microsoft.Extensions.DocumentExtraction.Abstractions.Tests (1)
DelegatingDocumentExtractionClientTests.cs (1)
244public override object? GetService(Type serviceType, object? serviceKey = null)
Microsoft.Extensions.DocumentExtraction.Tests (1)
DocumentExtractionMiddlewareTests.cs (1)
713public override object? GetService(Type serviceType, object? serviceKey = null)
20 references to GetService
Microsoft.Extensions.DocumentExtraction.Abstractions (1)
DelegatingDocumentExtractionClient.cs (1)
52: InnerClient.GetService(serviceType, serviceKey);
Microsoft.Extensions.DocumentExtraction.Abstractions.Tests (10)
DocumentExtractionDocumentBuilderTests.cs (10)
307Assert.Same(minimal, client.GetService(typeof(DocumentExtractionClient))); 323Assert.Same(client, client.GetService(type)); 324Assert.Same(client, client.GetService(type, null)); 327Assert.Null(client.GetService(typeof(string))); 339Assert.Null(client.GetService(type, key)); 344Assert.Same(client, client.GetService(typeof(MinimalClient))); 351Assert.Equal("serviceType", Assert.Throws<ArgumentNullException>(() => client.GetService(null!)).ParamName); 352Assert.Equal("serviceType", Assert.Throws<ArgumentNullException>(() => client.GetService(null!, null)).ParamName); 353Assert.Equal("serviceType", Assert.Throws<ArgumentNullException>(() => client.GetService(null!, "sdk-key")).ParamName); 366Assert.Same(client, client.GetService(typeof(DocumentExtractionClient)));
Microsoft.Extensions.DocumentExtraction.Tests (9)
DocumentExtractionMiddlewareTests.cs (9)
237Assert.Same(client, client.GetService(typeof(RecordingMiddleware))); 238Assert.Null(client.GetService(typeof(RecordingMiddleware), "different")); 548Assert.Same(pipeline, pipeline.GetService(typeof(DocumentExtractionClient))); 549Assert.Same(pipeline, pipeline.GetService(typeof(object))); 550Assert.Same(native, pipeline.GetService(typeof(Native))); 551Assert.Same(native, pipeline.GetService(typeof(Native), supportedKey)); 552Assert.Null(pipeline.GetService(typeof(Native), unsupportedKey)); 553Assert.Null(pipeline.GetService(typeof(Stream), supportedKey)); 718: base.GetService(serviceType, serviceKey);