4 references to AddKeyedSingleton
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (1)
239var serviceProvider = CreateServiceProvider((serviceCollection) => serviceCollection.AddKeyedSingleton<global::Http.ExampleService>("example"));
Microsoft.AspNetCore.OpenApi (2)
Extensions\OpenApiServiceCollectionExtensions.cs (2)
111services.AddKeyedSingleton<OpenApiSchemaService>(documentName); 112services.AddKeyedSingleton<OpenApiDocumentService>(documentName);
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
AutoActivationExtensions.Keyed.cs (1)
168.AddKeyedSingleton<TService>(serviceKey)