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