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)
197public HubConnectionState State => _state.OverallState; 278if (!_state.TryChangeState(HubConnectionState.Disconnected, HubConnectionState.Connecting)) 280throw new InvalidOperationException($"The {nameof(HubConnection)} cannot be started if it is not in the {nameof(HubConnectionState.Disconnected)} state."); 295_state.ChangeState(HubConnectionState.Connecting, HubConnectionState.Connected); 299if (_state.TryChangeState(HubConnectionState.Connecting, HubConnectionState.Disconnected)) 1761_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Disconnected); 1824_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Disconnected); 1830_state.ChangeState(HubConnectionState.Connected, HubConnectionState.Reconnecting); 1858_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected); 1880_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Connected); 1895_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected); 1920_state.ChangeState(HubConnectionState.Reconnecting, HubConnectionState.Disconnected); 2465public HubConnectionState OverallState { get; private set; } 2471public void ChangeState(HubConnectionState expectedState, HubConnectionState newState) 2480public 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);