9 implementations of GetKeyedService
Microsoft.AspNetCore.Components.Authorization.Tests (1)
src\Components\Shared\test\TestServiceProvider.cs (1)
30public object? GetKeyedService(Type serviceType, object? serviceKey)
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\TestServiceProvider.cs (1)
30public object? GetKeyedService(Type serviceType, object? serviceKey)
Microsoft.AspNetCore.Components.Tests (1)
src\Components\Shared\test\TestServiceProvider.cs (1)
30public object? GetKeyedService(Type serviceType, object? serviceKey)
Microsoft.AspNetCore.Components.Web.Tests (1)
src\Components\Shared\test\TestServiceProvider.cs (1)
30public object? GetKeyedService(Type serviceType, object? serviceKey)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
UseMiddlewareTest.cs (1)
348public object? GetKeyedService(Type serviceType, object? serviceKey)
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
287public object GetKeyedService(Type serviceType, object serviceKey)
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ServiceProviderEngineScope.cs (1)
53public object? GetKeyedService(Type serviceType, object? serviceKey)
ServiceProvider.cs (1)
111public object? GetKeyedService(Type serviceType, object? serviceKey)
Microsoft.Maui (1)
MauiContext.cs (1)
88 public object? GetKeyedService(Type serviceType, object? serviceKey)
9 references to GetKeyedService
Microsoft.AspNetCore.Components (1)
ComponentFactory.cs (1)
141serviceInstance = keyedServiceProvider.GetKeyedService(propertyType, serviceKey)
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\UseMiddlewareExtensions.cs (1)
339var service = ksp.GetKeyedService(type, key) ?? throw new InvalidOperationException(Resources.FormatException_InvokeMiddlewareNoService(type, middleware));
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\KeyedServicesModelBinder.cs (1)
32keyedServices.GetKeyedService(bindingContext.ModelType, _key) :
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
302return _serviceProvider.GetKeyedService(serviceType, serviceKey);
Microsoft.Extensions.DependencyInjection.Abstractions (4)
ActivatorUtilities.cs (2)
789return keyedServiceProvider.GetKeyedService(parameterInfo.ParameterType, key); 1228return keyedServiceProvider.GetKeyedService(type, serviceKey);
ServiceProviderKeyedServiceExtensions.cs (2)
28return (T?)keyedServiceProvider.GetKeyedService(typeof(T), serviceKey); 48return keyedServiceProvider.GetKeyedService(serviceType, serviceKey);
Microsoft.Maui (1)
MauiContext.cs (1)
91 return provider.GetKeyedService(serviceType, serviceKey);