3 references to KeyedSingleton
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
399{ ImplementationFactory: { } factory } => ServiceDescriptor.KeyedSingleton<IHost>(this, (sp, _) => (IHost)factory(sp)),
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (1)
376services.TryAdd(ServiceDescriptor.KeyedSingleton(serviceKey, implementationFactory));
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
AutoActivationExtensions.Keyed.cs (1)
345services.TryAddAndActivateKeyed<TService>(ServiceDescriptor.KeyedSingleton<TService>(serviceKey, implementationFactory));