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 ? 1071_state = WebSocketState.Closed; 1075_state = WebSocketState.CloseReceived; 1582_state = WebSocketState.Closed; 1586_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 ? 1013if (_state == WebSocketState.Aborted) 1068WebSocketState state = _state; 1078if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1579WebSocketState state = _state; 1589if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1753WebSocketState state = _state; 1762state = _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}");