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