7 references to AddSingleton
Microsoft.AspNetCore.AsyncState (1)
AsyncStateHttpContextExtensions.cs (1)
31
.
AddSingleton
(typeof(IAsyncContext<>), typeof(AsyncContextHttpContext<>));
Microsoft.AspNetCore.Hosting (2)
WebHostBuilder.cs (1)
324
services.
AddSingleton
(typeof(IStartup), startupType);
WebHostBuilderExtensions.cs (1)
152
services.
AddSingleton
(typeof(IStartup), startupType);
Microsoft.Extensions.DependencyInjection.Abstractions (3)
Extensions\ServiceCollectionDescriptorExtensions.cs (1)
349
/// <seealso cref="ServiceCollectionServiceExtensions.
AddSingleton
(IServiceCollection, Type, Type)"/>
ServiceCollectionServiceExtensions.cs (2)
444
return services.
AddSingleton
(typeof(TService), typeof(TImplementation));
467
return services.
AddSingleton
(serviceType, serviceType);
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
AutoActivationExtensions.cs (1)
218
.
AddSingleton
(serviceType, implementationType)