23 references to Disconnected
Microsoft.AspNetCore.SignalR.Client.Core (8)
HubConnection.cs (8)
272if (!_state.TryChangeState(HubConnectionState.Disconnected, HubConnectionState.Connecting)) 274throw new InvalidOperationException($"The {nameof(HubConnection)} cannot be started if it is not in the {nameof(HubConnectionState.Disconnected)} state."); 293if (_state.TryChangeState(HubConnectionState.Connecting, HubConnectionState.Disconnected)) 1751_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Disconnected); 1814_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Disconnected); 1848_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected); 1885_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected); 1910_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (2)
2788Assert.Equal(HubConnectionState.Disconnected, connection.State); 2909Assert.Equal(HubConnectionState.Disconnected, connection.State);
Microsoft.AspNetCore.SignalR.Client.Tests (13)
HubConnectionTests.ConnectionLifecycle.cs (12)
43Assert.Equal(HubConnectionState.Disconnected, connection.State); 93Assert.Equal(HubConnectionState.Disconnected, connection.State); 100Assert.Equal(HubConnectionState.Disconnected, connection.State); 273Assert.Equal(HubConnectionState.Disconnected, connection.State); 277Assert.Equal(HubConnectionState.Disconnected, connection.State); 285Assert.Equal(HubConnectionState.Disconnected, connection.State); 322Assert.Equal(HubConnectionState.Disconnected, connection.State); 330Assert.Equal(HubConnectionState.Disconnected, connection.State); 333Assert.Equal(HubConnectionState.Disconnected, connection.State); 345Assert.Equal(HubConnectionState.Disconnected, connection.State); 349Assert.Equal(HubConnectionState.Disconnected, connection.State); 517Assert.Equal(HubConnectionState.Disconnected, hubConnection.State);
HubConnectionTests.Reconnect.cs (1)
720Assert.Equal(HubConnectionState.Disconnected, hubConnection.State);