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