337 references to HubConnectionHandler
Microsoft.AspNetCore.SignalR.Core (6)
HubConnectionHandler.cs (3)
24private readonly ILogger<HubConnectionHandler<THub>> _logger; 39/// Initializes a new instance of the <see cref="HubConnectionHandler{THub}"/> class. 63_logger = loggerFactory.CreateLogger<HubConnectionHandler<THub>>();
SignalRConnectionBuilderExtensions.cs (1)
30return connectionBuilder.UseConnectionHandler<HubConnectionHandler<THub>>();
SignalRDependencyInjectionExtensions.cs (2)
29services.TryAddSingleton(typeof(HubConnectionHandler<>), typeof(HubConnectionHandler<>));
Microsoft.AspNetCore.SignalR.Tests (331)
HubConnectionHandlerTests.Activity.cs (16)
48var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 123var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 192var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 251var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 324var connectionHandler = serviceProvider.GetService<HubConnectionHandler<OnConnectedThrowsHub>>(); 371var connectionHandler = serviceProvider.GetService<HubConnectionHandler<OnDisconnectedThrowsHub>>(); 423var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 474var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>();
HubConnectionHandlerTests.ClientResult.cs (26)
19var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 52var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 84var connectionHandler = serviceProvider.GetService<HubConnectionHandler<OnConnectedClientResultHub>>(); 111var connectionHandler = serviceProvider.GetService<HubConnectionHandler<OnDisconnectedClientResultHub>>(); 136var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 168var connectionHandler = serviceProvider.GetService<HubConnectionHandler<HubT>>(); 202var connectionHandler = serviceProvider.GetService<HubConnectionHandler<HubT>>(); 237var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 291var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 360var connectionHandler = serviceProvider.GetService<HubConnectionHandler<HubT>>(); 405var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 450var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 487var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>();
HubConnectionHandlerTests.cs (252)
45var connectionHandler = serviceProvider.GetService<HubConnectionHandler<DisposeTrackingHub>>(); 73var connectionHandler = serviceProvider.GetService<HubConnectionHandler<HubWithAsyncDisposable>>(); 99var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ConnectionLifetimeHub>>(); 123var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ErrorInAbortedTokenHub>>(); 149var connectionHandler = serviceProvider.GetService<HubConnectionHandler<AbortHub>>(); 173var connectionHandler = serviceProvider.GetService<HubConnectionHandler<SimpleHub>>(); 201var connectionHandler = serviceProvider.GetService<HubConnectionHandler<SimpleHub>>(); 704var connectionHandler = serviceProvider.GetService<HubConnectionHandler<Hub>>(); 745var connectionHandler = serviceProvider.GetService<HubConnectionHandler<OnConnectedThrowsHub>>(); 777var connectionHandler = serviceProvider.GetService<HubConnectionHandler<OnDisconnectedThrowsHub>>(); 800var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 826var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 852var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 922var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 991var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1016var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1045var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1070var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1096var connectionHandler = serviceProvider.GetService<HubConnectionHandler<InheritedHub>>(); 1131var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1159var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1184var connectionHandler = serviceProvider.GetService<HubConnectionHandler<InheritedHub>>(); 1209var connectionHandler = serviceProvider.GetService<HubConnectionHandler<InheritedHub>>(); 1234var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1261var connectionHandler = serviceProvider.GetService<HubConnectionHandler<InvalidHub>>(); 1278var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1303var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1336var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1361var exception = Assert.Throws<NotSupportedException>(() => serviceProvider.GetService<HubConnectionHandler<GenericMethodHub>>()); 1411var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 1884var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2010var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 2045var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 2094var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 2129var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2205var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2241var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2280var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2343var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2387var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2417var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2455var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2493var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2517var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2550var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2614var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2645var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2669var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2698var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2744var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2806var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2842var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 2875var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ConnectionLifetimeHub>>(); 2905var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3019var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 3078var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 3105var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3148var connectionHandler = serviceProvider.GetService<HubConnectionHandler<OnConnectedThrowsHub>>(); 3183var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 3218var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 3253var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 3288var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 3330var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 3385var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 3441var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 3512var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 3560var connectionHandler = serviceProvider.GetService<HubConnectionHandler<SimpleHub>>(); 3597var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3621var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3644var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3672var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3736var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3772var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 3802var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3821var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ConnectionLifetimeHub>>(); 3844var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ConnectionLifetimeHub>>(); 3868var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3919var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3946var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3971var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 3995var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4015var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4034var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4056var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4094var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4131var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4168var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4214var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 4255var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 4300var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 4331var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 4358var connectionHandler = serviceProvider.GetService<HubConnectionHandler<LongRunningHub>>(); 4384var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4409HubConnectionHandler<StreamingHub> connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 4477var connectionHandler = serviceProvider.GetService<HubConnectionHandler<StreamingHub>>(); 4511var connectionHandler = serviceProvider.GetService<HubConnectionHandler<CallerServiceHub>>(); 4538var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4563var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4605var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4628var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 4656var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4673var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4692var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4711var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4736var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4758var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4779var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4800var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4825var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4848var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4870var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4890var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4910var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ServicesHub>>(); 4933var connectionHandler = serviceProvider.GetService<HubConnectionHandler<KeyedServicesHub>>(); 4956var connectionHandler = serviceProvider.GetService<HubConnectionHandler<KeyedServicesHub>>(); 4980var connectionHandler = serviceProvider.GetService<HubConnectionHandler<KeyedServicesHub>>(); 5003var connectionHandler = serviceProvider.GetService<HubConnectionHandler<KeyedServicesHub>>(); 5026var connectionHandler = serviceProvider.GetService<HubConnectionHandler<KeyedServicesHub>>(); 5046var ex = Assert.Throws<InvalidOperationException>(() => serviceProvider.GetService<HubConnectionHandler<KeyedServicesHub>>()); 5062var ex = Assert.Throws<InvalidOperationException>(() => serviceProvider.GetService<HubConnectionHandler<BadServicesHub>>()); 5074() => serviceProvider.GetService<HubConnectionHandler<TooManyParamsHub>>()); 5087var connectionHandler = serviceProvider.GetService<HubConnectionHandler<OnConnectedSendToClientHub>>(); 5117var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ConnectionLifetimeHub>>(); 5141var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ConnectionLifetimeHub>>(); 5172var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 5200var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 5245var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ConnectionLifetimeHub>>(); 5308var connectionHandler = serviceProvider.GetService<HubConnectionHandler<ConnectionLifetimeHub>>();
HubConnectionHandlerTestUtils\Utils.cs (1)
18var connectionHandlerType = typeof(HubConnectionHandler<>);
HubFilterTests.cs (36)
114var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 153var connectionHandler = serviceProvider.GetService<HubConnectionHandler<DynamicTestHub>>(); 188var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 238var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 289var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 337var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 397var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 459var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 539var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 588var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 631var connectionHandler = serviceProvider.GetService<HubConnectionHandler<OnConnectedThrowsHub>>(); 662var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 692var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 729var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 770var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 805var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 846var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>(); 884var connectionHandler = serviceProvider.GetService<HubConnectionHandler<MethodHub>>();