47 references to HubConnectionState
Microsoft.AspNetCore.SignalR.Client.Core (47)
_generated\0\LoggerMessage.g.cs (15)
982private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState, global::System.Exception?> __StateTransitionFailedCallback =
983global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(67, "StateTransitionFailed"), "The HubConnection failed to transition from the {ExpectedState} state to the {NewState} state because it was actually in the {ActualState} state.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
990public static partial void StateTransitionFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState expectedState, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState newState, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState actualState)
1190private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState, global::System.Exception?> __AttemptingStateTransitionCallback =
1191global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(80, "AttemptingStateTransition"), "The HubConnection is attempting to transition from the {ExpectedState} state to the {NewState} state.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
1198public static partial void AttemptingStateTransition(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState expectedState, global::Microsoft.AspNetCore.SignalR.Client.HubConnectionState newState)
HubConnection.cs (27)
225public HubConnectionState State => _state.OverallState;
308if (!_state.TryChangeState(HubConnectionState.Disconnected, HubConnectionState.Connecting))
310throw new InvalidOperationException($"The {nameof(HubConnection)} cannot be started if it is not in the {nameof(HubConnectionState.Disconnected)} state.");
325_state.ChangeState(HubConnectionState.Connecting, HubConnectionState.Connected);
329if (_state.TryChangeState(HubConnectionState.Connecting, HubConnectionState.Disconnected))
2071_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Disconnected);
2127_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Disconnected);
2133_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Reconnecting);
2161_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected);
2183_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Connected);
2198_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected);
2223_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected);
2754public HubConnectionState OverallState { get; private set; }
2760public void ChangeState(HubConnectionState expectedState, HubConnectionState newState)
2769public bool TryChangeState(HubConnectionState expectedState, HubConnectionState newState)