6 writes to _state
System.Net.WebSockets (6)
System\Net\WebSockets\ManagedWebSocket.cs (6)
249_state = WebSocketState.Closed; 470_state = state is not WebSocketState.None and not WebSocketState.Connecting ? 1076_state = WebSocketState.Closed; 1080_state = WebSocketState.CloseReceived; 1556_state = WebSocketState.Closed; 1560_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; 467WebSocketState state = _state; 475if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 548_state == WebSocketState.Aborted ? CreateOperationCanceledException(exc) : 588throw _state == WebSocketState.Aborted ? 628throw _state == WebSocketState.Aborted ? 1018if (_state == WebSocketState.Aborted) 1073WebSocketState state = _state; 1083if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1553WebSocketState state = _state; 1563if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1736WebSocketState state = _state; 1745state = _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}");