10 implementations of GetRequiredKeyedService
Microsoft.AspNetCore.Components.Authorization.Tests (1)
src\Components\Shared\test\TestServiceProvider.cs (1)
41public object GetRequiredKeyedService(Type serviceType, object? serviceKey)
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\TestServiceProvider.cs (1)
41public object GetRequiredKeyedService(Type serviceType, object? serviceKey)
Microsoft.AspNetCore.Components.Tests (1)
src\Components\Shared\test\TestServiceProvider.cs (1)
41public object GetRequiredKeyedService(Type serviceType, object? serviceKey)
Microsoft.AspNetCore.Components.Web.Tests (1)
src\Components\Shared\test\TestServiceProvider.cs (1)
41public object GetRequiredKeyedService(Type serviceType, object? serviceKey)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
UseMiddlewareTest.cs (1)
358public object GetRequiredKeyedService(Type serviceType, object? serviceKey)
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
298public object GetRequiredKeyedService(Type serviceType, object serviceKey)
Microsoft.Extensions.AI (1)
EmptyServiceProvider.cs (1)
22public object GetRequiredKeyedService(Type serviceType, object? serviceKey) =>
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ServiceProviderEngineScope.cs (1)
63public object GetRequiredKeyedService(Type serviceType, object? serviceKey)
ServiceProvider.cs (1)
124public object GetRequiredKeyedService(Type serviceType, object? serviceKey)
Microsoft.Maui (1)
MauiContext.cs (1)
97 public object GetRequiredKeyedService(Type serviceType, object? serviceKey)
4 references to GetRequiredKeyedService
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\KeyedServicesModelBinder.cs (1)
33keyedServices.GetRequiredKeyedService(bindingContext.ModelType, _key);
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
309return _serviceProvider.GetRequiredKeyedService(serviceType, serviceKey);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientBuilderTest.cs (1)
92Assert.Throws<InvalidOperationException>(() => keyedServiceProvider.GetRequiredKeyedService(typeof(object), "key"));
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceProviderKeyedServiceExtensions.cs (1)
69return requiredServiceSupportingProvider.GetRequiredKeyedService(serviceType, serviceKey);