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