44 references to StopAsync
ClientSample (2)
HubSample.cs (2)
65
connection.
StopAsync
().GetAwaiter().GetResult();
120
await connection.
StopAsync
();
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
40
/// Clean up a connection using <see cref="
StopAsync
"/> or <see cref="DisposeAsync"/>.
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
HubConnectionTests.cs (4)
259
await connection.
StopAsync
().DefaultTimeout();
292
await connection.
StopAsync
().DefaultTimeout();
352
await connection.
StopAsync
().DefaultTimeout();
2116
var stopTask = hubConnection.
StopAsync
();
Microsoft.AspNetCore.SignalR.Client.Tests (34)
HubConnectionTests.ConnectionLifecycle.cs (12)
99
await connection.
StopAsync
().DefaultTimeout();
129
var stopTask = connection.
StopAsync
();
182
await connection.
StopAsync
().DefaultTimeout();
283
await connection.
StopAsync
().DefaultTimeout();
300
await connection.
StopAsync
().DefaultTimeout();
311
await connection.
StopAsync
().DefaultTimeout();
328
await connection.
StopAsync
().DefaultTimeout();
332
await connection.
StopAsync
().DefaultTimeout();
347
await connection.
StopAsync
().DefaultTimeout();
399
var stopTask = connection.
StopAsync
();
441
var stopTask = connection.
StopAsync
();
469
var disposeTask = connection.
StopAsync
();
HubConnectionTests.cs (15)
78
await hubConnection.
StopAsync
().DefaultTimeout();
91
await hubConnection.
StopAsync
().DefaultTimeout();
121
await hubConnection.
StopAsync
().DefaultTimeout();
135
await hubConnection.
StopAsync
().DefaultTimeout();
194
await hubConnection.
StopAsync
().DefaultTimeout();
213
await hubConnection.
StopAsync
().DefaultTimeout();
239
await hubConnection.
StopAsync
().DefaultTimeout();
255
await hubConnection.
StopAsync
().DefaultTimeout();
274
await hubConnection.
StopAsync
().DefaultTimeout();
627
await hubConnection.
StopAsync
();
834
await hubConnection.
StopAsync
();
848
mockConnection.Setup(c => c.
StopAsync
(default)).Returns(() => Task.CompletedTask);
869
await hubConnection.
StopAsync
();
879
mockConnection.Verify(c => c.
StopAsync
(It.IsAny<CancellationToken>()), Times.Once);
938
await hubConnection.
StopAsync
().DefaultTimeout();
HubConnectionTests.Reconnect.cs (7)
174
await hubConnection.
StopAsync
().DefaultTimeout();
462
await hubConnection.
StopAsync
().DefaultTimeout();
546
await hubConnection.
StopAsync
().DefaultTimeout();
824
await hubConnection.
StopAsync
().DefaultTimeout();
944
await hubConnection.
StopAsync
().DefaultTimeout();
1033
var stopTask = hubConnection.
StopAsync
();
1109
await hubConnection.
StopAsync
().DefaultTimeout();
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
HubConnectionReceiveBenchmark.cs (1)
127
_hubConnection.
StopAsync
().GetAwaiter().GetResult();
HubConnectionSendBenchmark.cs (1)
87
_hubConnection.
StopAsync
().GetAwaiter().GetResult();
HubConnectionStartBenchmark.cs (1)
67
await _hubConnection.
StopAsync
();