12 references to TryAddSingleton
Microsoft.AspNetCore.SignalR.Core (7)
SignalRDependencyInjectionExtensions.cs (7)
25
services.
TryAddSingleton
(typeof(HubLifetimeManager<>), typeof(DefaultHubLifetimeManager<>));
26
services.
TryAddSingleton
(typeof(IHubProtocolResolver), typeof(DefaultHubProtocolResolver));
27
services.
TryAddSingleton
(typeof(IHubContext<>), typeof(HubContext<>));
29
services.
TryAddSingleton
(typeof(HubConnectionHandler<>), typeof(HubConnectionHandler<>));
30
services.
TryAddSingleton
(typeof(IUserIdProvider), typeof(DefaultUserIdProvider));
31
services.
TryAddSingleton
(typeof(HubDispatcher<>), typeof(DefaultHubDispatcher<>));
46
services.
TryAddSingleton
(typeof(IHubContext<,>), typeof(HubContext<,>));
Microsoft.Extensions.AsyncState (2)
AsyncStateExtensions.cs (2)
27
services.
TryAddSingleton
(typeof(IAsyncContext<>), typeof(AsyncContext<>));
29
services.
TryAddSingleton
(typeof(IAsyncLocalContext<>), typeof(AsyncContext<>));
Microsoft.Extensions.DependencyInjection.Abstractions (2)
Extensions\ServiceCollectionDescriptorExtensions.cs (2)
381
TryAddSingleton
(collection, typeof(TService), typeof(TService));
398
TryAddSingleton
(collection, typeof(TService), typeof(TImplementation));
Microsoft.Extensions.Logging.Configuration (1)
LoggingBuilderConfigurationExtensions.cs (1)
20
builder.Services.
TryAddSingleton
(typeof(ILoggerProviderConfiguration<>), typeof(LoggerProviderConfiguration<>));