93 references to CreateHubConnection
Microsoft.AspNetCore.SignalR.Client.Tests (93)
HubConnectionTests.ConnectionLifecycle.cs (18)
41await AsyncUsing(CreateHubConnection(testConnection), async connection => 56await AsyncUsing(CreateHubConnection(testConnection), async connection => 172await AsyncUsing(CreateHubConnection(testConnection, loggerFactory: LoggerFactory), async connection => 197await AsyncUsing(CreateHubConnection(testConnection), async connection => 212await AsyncUsing(CreateHubConnection(testConnection), async connection => 244await AsyncUsing(CreateHubConnection(testConnection), async connection => 267await AsyncUsing(CreateHubConnection(testConnection), async connection => 295await AsyncUsing(CreateHubConnection(testConnection), async connection => 309await AsyncUsing(CreateHubConnection(testConnection), async connection => 320await AsyncUsing(CreateHubConnection(testConnection), async connection => 343await AsyncUsing(CreateHubConnection(testConnection), async connection => 362await AsyncUsing(CreateHubConnection(testConnection), async connection => 387await AsyncUsing(CreateHubConnection(testConnection), async connection => 426await AsyncUsing(CreateHubConnection(testConnection), async connection => 463await AsyncUsing(CreateHubConnection(testConnection), async connection => 511var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 540var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 582var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory);
HubConnectionTests.cs (28)
36var hubConnection = CreateHubConnection(new TestConnection(), protocol: MockHubProtocol.Throw(exception), LoggerFactory); 51var hubConnection = CreateHubConnection(new TestConnection(), protocol: MockHubProtocol.Throw(exception), LoggerFactory); 86var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 106var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 131var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 153var hubConnection = CreateHubConnection(connection, protocol: Mock.Of<IHubProtocol>(), LoggerFactory); 171var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 188var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 207var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 227var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 249var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 268var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 287var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 317var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 355var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 381var hubConnection = CreateHubConnection(testConnection, loggerFactory: LoggerFactory); 413var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 435var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 475var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 506var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 550var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 582var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 608var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 642var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 674var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 707var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 753await using var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 812var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory);
HubConnectionTests.Extensions.cs (6)
217var hubConnection = CreateHubConnection(connection); 245var hubConnection = CreateHubConnection(connection); 283var hubConnection = CreateHubConnection(connection); 325var hubConnection = CreateHubConnection(connection); 363var hubConnection = CreateHubConnection(connection); 677var hubConnection = CreateHubConnection(connection);
HubConnectionTests.Protocol.cs (35)
21var hubConnection = CreateHubConnection(connection); 46var hubConnection = CreateHubConnection(connection); 72var hubConnection = CreateHubConnection(connection); 102var hubConnection = CreateHubConnection(connection); 121var hubConnection = CreateHubConnection(connection); 148var hubConnection = CreateHubConnection(connection); 177var hubConnection = CreateHubConnection(connection); 204var hubConnection = CreateHubConnection(connection); 231var hubConnection = CreateHubConnection(connection); 253var hubConnection = CreateHubConnection(connection); 275var hubConnection = CreateHubConnection(connection); 297var hubConnection = CreateHubConnection(connection); 320var hubConnection = CreateHubConnection(connection); 343var hubConnection = CreateHubConnection(connection); 366var hubConnection = CreateHubConnection(connection); 389var hubConnection = CreateHubConnection(connection); 416var hubConnection = CreateHubConnection(connection); 440var hubConnection = CreateHubConnection(connection); 472var hubConnection = CreateHubConnection(connection); 506var hubConnection = CreateHubConnection(connection); 535var hubConnection = CreateHubConnection(connection); 564var hubConnection = CreateHubConnection(connection); 591var hubConnection = CreateHubConnection(connection); 627var hubConnection = CreateHubConnection(connection); 653var hubConnection = CreateHubConnection(connection); 682var hubConnection = CreateHubConnection(connection); 706var hubConnection = CreateHubConnection(connection); 727var hubConnection = CreateHubConnection(connection); 754var hubConnection = CreateHubConnection(connection); 781var hubConnection = CreateHubConnection(connection); 810var hubConnection = CreateHubConnection(connection); 832var hubConnection = CreateHubConnection(connection); 857var hubConnection = CreateHubConnection(connection); 882var hubConnection = CreateHubConnection(connection); 907var hubConnection = CreateHubConnection(connection);
HubConnectionTests.Reconnect.cs (1)
43await using var hubConnection = CreateHubConnection(testConnection, loggerFactory: LoggerFactory);
HubConnectionTests.Tracing.cs (5)
36var hubConnection = CreateHubConnection(connection, clientActivitySource: clientSourceContainer); 73var hubConnection = CreateHubConnection(connection, clientActivitySource: clientSourceContainer); 111var hubConnection = CreateHubConnection(connection, clientActivitySource: clientSourceContainer); 150var hubConnection = CreateHubConnection(connection, clientActivitySource: clientSourceContainer); 189var hubConnection = CreateHubConnection(connection, clientActivitySource: clientSourceContainer);