226 references to StartAsync
ClientSample (3)
HubSample.cs (1)
133await connection.StartAsync(token);
StreamingSample.cs (1)
31await connection.StartAsync();
UploadSample.cs (1)
33await connection.StartAsync();
JwtClientSample (1)
Program.cs (1)
47await hubConnection.StartAsync();
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (3)
39/// Before hub methods can be invoked the connection must be started using <see cref="StartAsync"/>. 196/// <param name="connectionFactory">The <see cref="IConnectionFactory" /> used to create a connection each time <see cref="StartAsync" /> is called.</param> 217/// <param name="connectionFactory">The <see cref="IConnectionFactory" /> used to create a connection each time <see cref="StartAsync" /> is called.</param>
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (83)
HubConnectionTests.cs (73)
104await connection.StartAsync().DefaultTimeout(); 143var ex = await Assert.ThrowsAnyAsync<Exception>(() => connection.StartAsync()).DefaultTimeout(); 173await connection.StartAsync().DefaultTimeout(); 198await connection.StartAsync().DefaultTimeout(); 226await connection.StartAsync().DefaultTimeout(); 256await connection.StartAsync().DefaultTimeout(); 260await connection.StartAsync().DefaultTimeout(); 288await connection.StartAsync().DefaultTimeout(); 294await connection.StartAsync().DefaultTimeout(); 332await connection.StartAsync().DefaultTimeout(); 347await connection.StartAsync().DefaultTimeout(); 385await connection.StartAsync().DefaultTimeout(); 416await connection.StartAsync().DefaultTimeout(); 454await connection.StartAsync().DefaultTimeout(); 501await connection.StartAsync().DefaultTimeout(); 535await connection.StartAsync().DefaultTimeout(); 570await connection.StartAsync().DefaultTimeout(); 607await connection.StartAsync().DefaultTimeout(); 655await connection.StartAsync().DefaultTimeout(); 693await connection.StartAsync().DefaultTimeout(); 739await connection.StartAsync().DefaultTimeout(); 767await connection.StartAsync().DefaultTimeout(); 797await connection.StartAsync().DefaultTimeout(); 844await connection.StartAsync().DefaultTimeout(); 890await connection.StartAsync().DefaultTimeout(); 934await connection.StartAsync().DefaultTimeout(); 975await connection.StartAsync().DefaultTimeout(); 1016await connection.StartAsync().DefaultTimeout(); 1051await connection.StartAsync().DefaultTimeout(); 1079await connection.StartAsync().DefaultTimeout(); 1106await connection.StartAsync().DefaultTimeout(); 1133await connection.StartAsync().DefaultTimeout(); 1160await connection.StartAsync().DefaultTimeout(); 1187await connection.StartAsync().DefaultTimeout(); 1215await connection.StartAsync().DefaultTimeout(); 1243await connection.StartAsync().DefaultTimeout(); 1271await connection.StartAsync().DefaultTimeout(); 1298await connection.StartAsync().DefaultTimeout(); 1325await connection.StartAsync().DefaultTimeout(); 1367await connection.StartAsync().DefaultTimeout(); 1421await connection.StartAsync().DefaultTimeout(); 1460await connection.StartAsync().DefaultTimeout(); 1492await hubConnection.StartAsync().DefaultTimeout(); 1525var ex = await Assert.ThrowsAnyAsync<HttpRequestException>(() => hubConnection.StartAsync().DefaultTimeout()); 1547await hubConnection.StartAsync().DefaultTimeout(); 1579await hubConnection.StartAsync().DefaultTimeout(); 1610await hubConnection.StartAsync().DefaultTimeout(); 1651await hubConnection.StartAsync().DefaultTimeout(); 1686await hubConnection.StartAsync().DefaultTimeout(); 1726await hubConnection.StartAsync().DefaultTimeout(); 1777await hubConnection.StartAsync().DefaultTimeout(); 1836await hubConnection.StartAsync().DefaultTimeout(); 1896var ex = await Assert.ThrowsAsync<AggregateException>(() => hubConnection.StartAsync().DefaultTimeout()); 1943await hubConnection.StartAsync().DefaultTimeout(); 1979await hubConnection.StartAsync().DefaultTimeout(); 2006await hubConnection.StartAsync().DefaultTimeout(); 2045await hubConnection.StartAsync().DefaultTimeout(); 2075await hubConnection.StartAsync().DefaultTimeout(); 2111await hubConnection.StartAsync(); 2170await connection.StartAsync().DefaultTimeout(); 2230await connection.StartAsync().DefaultTimeout(); 2296await connection.StartAsync().DefaultTimeout(); 2340Assert.True(connection.StartAsync().Wait(DefaultTimeout)); 2387await hubConnection.StartAsync().DefaultTimeout(); 2440await hubConnection.StartAsync().DefaultTimeout(); 2483await hubConnection.StartAsync().DefaultTimeout(); 2533await hubConnection.StartAsync().DefaultTimeout(); 2579await connection.StartAsync().DefaultTimeout(); 2644await connection.StartAsync().DefaultTimeout(); 2719await connection.StartAsync().DefaultTimeout(); 2783await connection.StartAsync().DefaultTimeout(); 2820await connection.StartAsync().DefaultTimeout(); 2890await connection.StartAsync().DefaultTimeout();
HubConnectionTests.Tracing.cs (6)
72await connection.StartAsync().DefaultTimeout(); 258await connection.StartAsync().DefaultTimeout(); 400await connection.StartAsync().DefaultTimeout(); 503await connection.StartAsync().DefaultTimeout(); 606await connection.StartAsync().DefaultTimeout(); 696await connection.StartAsync().DefaultTimeout();
HubProtocolVersionTests.cs (4)
49await connection.StartAsync().DefaultTimeout(); 82await connection.StartAsync().DefaultTimeout(); 131await connection.StartAsync().DefaultTimeout(); 182() => connection.StartAsync(),
Microsoft.AspNetCore.SignalR.Client.Tests (118)
HubConnectionTests.ConnectionLifecycle.cs (22)
45await connection.StartAsync().DefaultTimeout(); 58var firstStart = connection.StartAsync(); 65var secondStart = connection.StartAsync(); 95await connection.StartAsync().DefaultTimeout(); 102await connection.StartAsync().DefaultTimeout(); 126await connection.StartAsync().DefaultTimeout(); 136var startTask = connection.StartAsync(); 177await connection.StartAsync().DefaultTimeout(); 215var startTask = connection.StartAsync(); 247var startTask = connection.StartAsync(); 279await connection.StartAsync().DefaultTimeout(); 297await connection.StartAsync().DefaultTimeout(); 324await connection.StartAsync().DefaultTimeout(); 351await connection.StartAsync().DefaultTimeout(); 369await connection.StartAsync().DefaultTimeout(); 395await connection.StartAsync().DefaultTimeout(); 434await connection.StartAsync().DefaultTimeout(); 465await connection.StartAsync().DefaultTimeout(); 516await Assert.ThrowsAnyAsync<OperationCanceledException>(() => hubConnection.StartAsync()).DefaultTimeout(); 543await Assert.ThrowsAsync<TaskCanceledException>(() => hubConnection.StartAsync(new CancellationToken(canceled: true))).DefaultTimeout(); 588var startTask = hubConnection.StartAsync(cts.Token); 624await hubConnection.StartAsync().DefaultTimeout();
HubConnectionTests.cs (35)
37await hubConnection.StartAsync().DefaultTimeout(); 52await hubConnection.StartAsync().DefaultTimeout(); 77await hubConnection.StartAsync().DefaultTimeout(); 95await hubConnection.StartAsync().DefaultTimeout(); 116await hubConnection.StartAsync().DefaultTimeout(); 133await hubConnection.StartAsync().DefaultTimeout(); 155await hubConnection.StartAsync().DefaultTimeout(); 173await hubConnection.StartAsync().DefaultTimeout(); 190await hubConnection.StartAsync().DefaultTimeout(); 209await hubConnection.StartAsync().DefaultTimeout(); 229await hubConnection.StartAsync().DefaultTimeout(); 251await hubConnection.StartAsync().DefaultTimeout(); 270await hubConnection.StartAsync().DefaultTimeout(); 289await hubConnection.StartAsync().DefaultTimeout(); 319await hubConnection.StartAsync().DefaultTimeout(); 365await hubConnection.StartAsync().DefaultTimeout(); 384await hubConnection.StartAsync().DefaultTimeout(); 416await hubConnection.StartAsync().DefaultTimeout(); 436await hubConnection.StartAsync().DefaultTimeout(); 476await hubConnection.StartAsync().DefaultTimeout(); 507await hubConnection.StartAsync().DefaultTimeout(); 551await hubConnection.StartAsync().DefaultTimeout(); 583await hubConnection.StartAsync().DefaultTimeout(); 609await hubConnection.StartAsync().DefaultTimeout(); 643await hubConnection.StartAsync().DefaultTimeout(); 675await hubConnection.StartAsync().DefaultTimeout(); 708await hubConnection.StartAsync().DefaultTimeout(); 754await hubConnection.StartAsync().DefaultTimeout(); 786await Assert.ThrowsAsync<InvalidOperationException>(() => connection.StartAsync().DefaultTimeout()); 813await hubConnection.StartAsync().DefaultTimeout(); 847mockConnection.Setup(c => c.StartAsync(default)).Returns(() => Task.CompletedTask); 864await hubConnection.StartAsync(); 878mockConnection.Verify(c => c.StartAsync(It.IsAny<CancellationToken>()), Times.Once); 904await hubConnection.StartAsync().DefaultTimeout(); 936await hubConnection.StartAsync().DefaultTimeout();
HubConnectionTests.Extensions.cs (6)
222await hubConnection.StartAsync(); 251await hubConnection.StartAsync().DefaultTimeout(); 293await hubConnection.StartAsync().DefaultTimeout(); 331await hubConnection.StartAsync().DefaultTimeout(); 373await hubConnection.StartAsync().DefaultTimeout(); 682await hubConnection.StartAsync();
HubConnectionTests.Protocol.cs (35)
24await hubConnection.StartAsync().DefaultTimeout(); 50var startTask = hubConnection.StartAsync(); 76var startTask = hubConnection.StartAsync(); 105var startTask = hubConnection.StartAsync(); 124await hubConnection.StartAsync().DefaultTimeout(); 157await hubConnection.StartAsync().DefaultTimeout(); 186await hubConnection.StartAsync().DefaultTimeout(); 207await hubConnection.StartAsync().DefaultTimeout(); 234await hubConnection.StartAsync().DefaultTimeout(); 256await hubConnection.StartAsync().DefaultTimeout(); 278await hubConnection.StartAsync().DefaultTimeout(); 300await hubConnection.StartAsync().DefaultTimeout(); 323await hubConnection.StartAsync().DefaultTimeout(); 346await hubConnection.StartAsync().DefaultTimeout(); 369await hubConnection.StartAsync().DefaultTimeout(); 392await hubConnection.StartAsync().DefaultTimeout(); 420await hubConnection.StartAsync().DefaultTimeout(); 444await hubConnection.StartAsync().DefaultTimeout(); 476await hubConnection.StartAsync().DefaultTimeout(); 510await hubConnection.StartAsync().DefaultTimeout(); 538var task = hubConnection.StartAsync(); 575await hubConnection.StartAsync().DefaultTimeout(); 600await hubConnection.StartAsync().DefaultTimeout(); 634await hubConnection.StartAsync().DefaultTimeout(); 660await hubConnection.StartAsync().DefaultTimeout(); 685await hubConnection.StartAsync().DefaultTimeout(); 709await hubConnection.StartAsync().DefaultTimeout(); 730await hubConnection.StartAsync().DefaultTimeout(); 757await hubConnection.StartAsync().DefaultTimeout(); 784await hubConnection.StartAsync().DefaultTimeout(); 813await hubConnection.StartAsync().DefaultTimeout(); 835await hubConnection.StartAsync().DefaultTimeout(); 860await hubConnection.StartAsync().DefaultTimeout(); 885await hubConnection.StartAsync().DefaultTimeout(); 910await hubConnection.StartAsync().DefaultTimeout();
HubConnectionTests.Reconnect.cs (13)
60await hubConnection.StartAsync().DefaultTimeout(); 151await hubConnection.StartAsync().DefaultTimeout(); 250await hubConnection.StartAsync().DefaultTimeout(); 345await hubConnection.StartAsync().DefaultTimeout(); 427await hubConnection.StartAsync().DefaultTimeout(); 525await hubConnection.StartAsync().DefaultTimeout(); 600await hubConnection.StartAsync().DefaultTimeout(); 659await hubConnection.StartAsync().DefaultTimeout(); 714var startTask = hubConnection.StartAsync().DefaultTimeout(); 788var startTask = hubConnection.StartAsync(); 895var startTask = hubConnection.StartAsync(); 1021await hubConnection.StartAsync().DefaultTimeout(); 1098await hubConnection.StartAsync().DefaultTimeout();
HubConnectionTests.Tracing.cs (5)
39await hubConnection.StartAsync().DefaultTimeout(); 76await hubConnection.StartAsync().DefaultTimeout(); 114await hubConnection.StartAsync().DefaultTimeout(); 153await hubConnection.StartAsync().DefaultTimeout(); 192var startTask = hubConnection.StartAsync();
TestServerTests.cs (2)
63await connection.StartAsync(); 108await connection.StartAsync();
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
HubConnectionReceiveBenchmark.cs (1)
89_hubConnection.StartAsync().GetAwaiter().GetResult();
HubConnectionSendBenchmark.cs (1)
68_hubConnection.StartAsync().GetAwaiter().GetResult();
HubConnectionStartBenchmark.cs (1)
66await _hubConnection.StartAsync();
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (11)
RedisEndToEnd.cs (11)
48await connection.StartAsync().DefaultTimeout(); 76await secondConnection.StartAsync().DefaultTimeout(); 77await connection.StartAsync().DefaultTimeout(); 106await secondConnection.StartAsync().DefaultTimeout(); 107await connection.StartAsync().DefaultTimeout(); 136await secondConnection.StartAsync().DefaultTimeout(); 137await firstConnection.StartAsync().DefaultTimeout(); 166await secondConnection.StartAsync().DefaultTimeout(); 167await connection.StartAsync().DefaultTimeout(); 200await secondConnection.StartAsync().DefaultTimeout(); 201await connection.StartAsync().DefaultTimeout();
Microsoft.AspNetCore.SignalR.Tests (4)
EndToEndTests.cs (3)
571await connection.StartAsync().DefaultTimeout(); 620await connection.StartAsync().DefaultTimeout(); 671await connection.StartAsync().DefaultTimeout();
NativeAotTests.cs (1)
36await connection.StartAsync().DefaultTimeout();