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)
259var descriptor = ServiceDescriptor.KeyedSingleton(service, serviceKey, service); 282var descriptor = ServiceDescriptor.KeyedSingleton(service, serviceKey, implementationType);
Microsoft.Extensions.DependencyInjection.AutoActivation (2)
AutoActivationExtensions.Keyed.cs (2)
252services.TryAddAndActivateKeyed(ServiceDescriptor.KeyedSingleton(serviceType, serviceKey, serviceType)); 272services.TryAddAndActivateKeyed(ServiceDescriptor.KeyedSingleton(serviceType, serviceKey, implementationType));