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)
203public HubConnectionState State => _state.OverallState; 286if (!_state.TryChangeState(HubConnectionState.Disconnected, HubConnectionState.Connecting)) 288throw new InvalidOperationException($"The {nameof(HubConnection)} cannot be started if it is not in the {nameof(HubConnectionState.Disconnected)} state."); 303_state.ChangeState(HubConnectionState.Connecting, HubConnectionState.Connected); 307if (_state.TryChangeState(HubConnectionState.Connecting, HubConnectionState.Disconnected)) 1935_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Disconnected); 1998_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Disconnected); 2004_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Reconnecting); 2032_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected); 2054_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Connected); 2069_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected); 2094_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected); 2639public HubConnectionState OverallState { get; private set; } 2645public void ChangeState(HubConnectionState expectedState, HubConnectionState newState) 2654public bool TryChangeState(HubConnectionState expectedState, HubConnectionState newState)
HubConnection.Log.cs (5)
258public static partial void StateTransitionFailed(ILogger logger, HubConnectionState expectedState, HubConnectionState newState, HubConnectionState actualState); 297public static partial void AttemptingStateTransition(ILogger logger, HubConnectionState expectedState, HubConnectionState newState);