2 implementations of IHubContext
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubContext`T.cs (1)
6internal sealed class HubContext<THub, T> : IHubContext<THub, T>
Microsoft.AspNetCore.SignalR.Tests (1)
AddSignalRTests.cs (1)
250public class CustomHubContext<THub, T> : IHubContext<THub, T>
12 references to IHubContext
Microsoft.AspNetCore.SignalR.Core (1)
SignalRDependencyInjectionExtensions.cs (1)
27services.TryAddSingleton(typeof(IHubContext<,>), typeof(HubContext<,>));
Microsoft.AspNetCore.SignalR.Tests (11)
AddSignalRTests.cs (4)
34serviceCollection.AddSingleton(typeof(IHubContext<,>), typeof(CustomHubContext<,>)); 45Assert.IsType<CustomHubContext<CustomTHub, string>>(serviceProvider.GetRequiredService<IHubContext<CustomTHub, string>>()); 62serviceCollection.AddSingleton(typeof(IHubContext<,>), typeof(CustomHubContext<,>)); 70Assert.IsType<CustomHubContext<CustomTHub, string>>(serviceProvider.GetRequiredService<IHubContext<CustomTHub, string>>());
HubConnectionHandlerTests.ClientResult.cs (4)
178var context = serviceProvider.GetRequiredService<IHubContext<HubT, ITest>>(); 370var context = serviceProvider.GetRequiredService<IHubContext<HubT, ITest>>();
HubConnectionHandlerTests.cs (3)
232var context = serviceProvider.GetRequiredService<IHubContext<SimpleTypedHub, ITypedHubClient>>(); 244serviceProvider.GetRequiredService<IHubContext<SimpleVoidReturningTypedHub, IVoidReturningTypedHubClient>>());