21 references to CustomHub
Microsoft.AspNetCore.SignalR.Tests (21)
AddSignalRTests.cs (21)
41
Assert.IsType<CustomHubLifetimeManager<
CustomHub
>>(serviceProvider.GetRequiredService<HubLifetimeManager<
CustomHub
>>());
43
Assert.IsType<CustomHubActivator<
CustomHub
>>(serviceProvider.GetRequiredService<IHubActivator<
CustomHub
>>());
44
Assert.IsType<CustomHubContext<
CustomHub
>>(serviceProvider.GetRequiredService<IHubContext<
CustomHub
>>());
66
Assert.IsType<CustomHubLifetimeManager<
CustomHub
>>(serviceProvider.GetRequiredService<HubLifetimeManager<
CustomHub
>>());
68
Assert.IsType<CustomHubActivator<
CustomHub
>>(serviceProvider.GetRequiredService<IHubActivator<
CustomHub
>>());
69
Assert.IsType<CustomHubContext<
CustomHub
>>(serviceProvider.GetRequiredService<IHubContext<
CustomHub
>>());
79
serviceCollection.AddSignalR().AddHubOptions<
CustomHub
>(options =>
87
Assert.Empty(serviceProvider.GetRequiredService<IOptions<HubOptions<
CustomHub
>>>().Value.SupportedProtocols);
90
Assert.Single(serviceProvider.GetRequiredService<IOptions<HubOptions<
CustomHub
>>>().Value.HubFilters);
98
serviceCollection.AddSignalR().AddHubOptions<
CustomHub
>(options =>
103
var hubOptions = serviceProvider.GetRequiredService<IOptions<HubOptions<
CustomHub
>>>().Value;
124
serviceCollection.AddSignalR().AddHubOptions<
CustomHub
>(options =>
130
Assert.Equal(42, serviceProvider.GetRequiredService<IOptions<HubOptions<
CustomHub
>>>().Value.StreamBufferCapacity);
174
serviceCollection.AddSignalR().AddHubOptions<
CustomHub
>(options =>
182
Assert.Collection(serviceProvider.GetRequiredService<IOptions<HubOptions<
CustomHub
>>>().Value.SupportedProtocols,