44 references to StopAsync
ClientSample (2)
HubSample.cs (2)
65connection.StopAsync().GetAwaiter().GetResult(); 120await 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)
259await connection.StopAsync().DefaultTimeout(); 292await connection.StopAsync().DefaultTimeout(); 352await connection.StopAsync().DefaultTimeout(); 2116var stopTask = hubConnection.StopAsync();
Microsoft.AspNetCore.SignalR.Client.Tests (34)
HubConnectionTests.ConnectionLifecycle.cs (12)
99await connection.StopAsync().DefaultTimeout(); 129var stopTask = connection.StopAsync(); 182await connection.StopAsync().DefaultTimeout(); 283await connection.StopAsync().DefaultTimeout(); 300await connection.StopAsync().DefaultTimeout(); 311await connection.StopAsync().DefaultTimeout(); 328await connection.StopAsync().DefaultTimeout(); 332await connection.StopAsync().DefaultTimeout(); 347await connection.StopAsync().DefaultTimeout(); 399var stopTask = connection.StopAsync(); 441var stopTask = connection.StopAsync(); 469var disposeTask = connection.StopAsync();
HubConnectionTests.cs (15)
78await hubConnection.StopAsync().DefaultTimeout(); 91await hubConnection.StopAsync().DefaultTimeout(); 121await hubConnection.StopAsync().DefaultTimeout(); 135await hubConnection.StopAsync().DefaultTimeout(); 194await hubConnection.StopAsync().DefaultTimeout(); 213await hubConnection.StopAsync().DefaultTimeout(); 239await hubConnection.StopAsync().DefaultTimeout(); 255await hubConnection.StopAsync().DefaultTimeout(); 274await hubConnection.StopAsync().DefaultTimeout(); 627await hubConnection.StopAsync(); 834await hubConnection.StopAsync(); 848mockConnection.Setup(c => c.StopAsync(default)).Returns(() => Task.CompletedTask); 869await hubConnection.StopAsync(); 879mockConnection.Verify(c => c.StopAsync(It.IsAny<CancellationToken>()), Times.Once); 938await hubConnection.StopAsync().DefaultTimeout();
HubConnectionTests.Reconnect.cs (7)
174await hubConnection.StopAsync().DefaultTimeout(); 462await hubConnection.StopAsync().DefaultTimeout(); 546await hubConnection.StopAsync().DefaultTimeout(); 824await hubConnection.StopAsync().DefaultTimeout(); 944await hubConnection.StopAsync().DefaultTimeout(); 1033var stopTask = hubConnection.StopAsync(); 1109await 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)
67await _hubConnection.StopAsync();