23 references to Disconnected
Microsoft.AspNetCore.SignalR.Client.Core (8)
HubConnection.cs (8)
272
if (!_state.TryChangeState(HubConnectionState.
Disconnected
, HubConnectionState.Connecting))
274
throw new InvalidOperationException($"The {nameof(HubConnection)} cannot be started if it is not in the {nameof(HubConnectionState.
Disconnected
)} state.");
293
if (_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)
2788
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
2909
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
Microsoft.AspNetCore.SignalR.Client.Tests (13)
HubConnectionTests.ConnectionLifecycle.cs (12)
43
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
93
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
100
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
273
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
277
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
285
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
322
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
330
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
333
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
345
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
349
Assert.Equal(HubConnectionState.
Disconnected
, connection.State);
517
Assert.Equal(HubConnectionState.
Disconnected
, hubConnection.State);
HubConnectionTests.Reconnect.cs (1)
720
Assert.Equal(HubConnectionState.
Disconnected
, hubConnection.State);