5 references to KeyedSingleton
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
401
{ ImplementationType: { } type } => ServiceDescriptor.
KeyedSingleton
(typeof(IHost), this, type),
Microsoft.Extensions.DependencyInjection.Abstractions (2)
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (2)
259
var descriptor = ServiceDescriptor.
KeyedSingleton
(service, serviceKey, service);
282
var descriptor = ServiceDescriptor.
KeyedSingleton
(service, serviceKey, implementationType);
Microsoft.Extensions.DependencyInjection.AutoActivation (2)
AutoActivationExtensions.Keyed.cs (2)
252
services.TryAddAndActivateKeyed(ServiceDescriptor.
KeyedSingleton
(serviceType, serviceKey, serviceType));
272
services.TryAddAndActivateKeyed(ServiceDescriptor.
KeyedSingleton
(serviceType, serviceKey, implementationType));