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 ? 1065_state = WebSocketState.Closed; 1069_state = WebSocketState.CloseReceived; 1554_state = WebSocketState.Closed; 1558_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}"); 537_state == WebSocketState.Aborted ? CreateOperationCanceledException(exc) : 577throw _state == WebSocketState.Aborted ? 617throw _state == WebSocketState.Aborted ? 1007if (_state == WebSocketState.Aborted) 1062WebSocketState state = _state; 1072if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1551WebSocketState state = _state; 1561if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1734WebSocketState state = _state; 1743state = _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}");