8 references to AddKeyedSingleton
Microsoft.Extensions.DependencyInjection.Abstractions (4)
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (1)
285/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedSingleton(IServiceCollection, Type, object, Type)"/>
ServiceCollectionServiceExtensions.Keyed.cs (3)
482return services.AddKeyedSingleton(typeof(TService), serviceKey, typeof(TImplementation)); 507return services.AddKeyedSingleton(serviceType, serviceKey, serviceType); 531return services.AddKeyedSingleton(typeof(TService), serviceKey, typeof(TService));
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
..\..\..\..\src\Libraries\Microsoft.Extensions.DependencyInjection.AutoActivation\AutoActivationExtensions.Keyed.cs (1)
234.AddKeyedSingleton(serviceType, serviceKey, implementationType)
Microsoft.Extensions.DependencyInjection.AutoActivation.Tests (3)
..\..\..\..\test\Libraries\Microsoft.Extensions.DependencyInjection.AutoActivation.Tests\AcceptanceTest.Keyed.cs (3)
394.AddKeyedSingleton(typeof(IFakeOpenGenericService<PocoClass>), serviceKey, typeof(FakeService)) 395.AddKeyedSingleton(typeof(IFakeOpenGenericService<>), serviceKey, typeof(FakeOpenGenericService<>)) 417.AddKeyedSingleton(typeof(IFakeOpenGenericService<PocoClass>), serviceKey, typeof(FakeService))