6 writes to _state
System.Net.WebSockets (6)
System\Net\WebSockets\ManagedWebSocket.cs (6)
249_state = WebSocketState.Closed; 464_state = state is not WebSocketState.None and not WebSocketState.Connecting ? 1072_state = WebSocketState.Closed; 1076_state = WebSocketState.CloseReceived; 1583_state = WebSocketState.Closed; 1587_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; 461WebSocketState state = _state; 469if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 543_state == WebSocketState.Aborted ? CreateOperationCanceledException(exc) : 583throw _state == WebSocketState.Aborted ? 623throw _state == WebSocketState.Aborted ? 1014if (_state == WebSocketState.Aborted) 1069WebSocketState state = _state; 1079if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1580WebSocketState state = _state; 1590if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1755WebSocketState state = _state; 1764state = _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}");