6 writes to _state
System.Net.WebSockets (6)
System\Net\WebSockets\ManagedWebSocket.cs (6)
249_state = WebSocketState.Closed; 458_state = state is not WebSocketState.None and not WebSocketState.Connecting ? 1064_state = WebSocketState.Closed; 1068_state = WebSocketState.CloseReceived; 1548_state = WebSocketState.Closed; 1552_state = WebSocketState.CloseSent;
18 references to _state
System.Net.WebSockets (18)
System\Net\WebSockets\ManagedWebSocket.cs (15)
246WebSocketState state = _state; 252if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 293public override WebSocketState State => _state; 455WebSocketState state = _state; 463if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 536_state == WebSocketState.Aborted ? CreateOperationCanceledException(exc) : 576throw _state == WebSocketState.Aborted ? 616throw _state == WebSocketState.Aborted ? 1006if (_state == WebSocketState.Aborted) 1061WebSocketState state = _state; 1071if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1545WebSocketState state = _state; 1555if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1728WebSocketState state = _state; 1737state = _state;
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (3)
40if (!WebSocketStateHelper.IsValidSendState(_state)) 42if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"Cannot send keep-alive frame in {nameof(_state)}={_state}");