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)
246
WebSocketState state =
_state
;
252
if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {
_state
}");
293
public override WebSocketState State =>
_state
;
467
WebSocketState state =
_state
;
475
if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {
_state
}");
548
_state
== WebSocketState.Aborted ? CreateOperationCanceledException(exc) :
588
throw
_state
== WebSocketState.Aborted ?
628
throw
_state
== WebSocketState.Aborted ?
1018
if (
_state
== WebSocketState.Aborted)
1073
WebSocketState state =
_state
;
1083
if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {
_state
}");
1553
WebSocketState state =
_state
;
1563
if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {
_state
}");
1736
WebSocketState state =
_state
;
1745
state =
_state
;
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (3)
40
if (!WebSocketStateHelper.IsValidSendState(
_state
))
42
if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"Cannot send keep-alive frame in {nameof(
_state
)}={
_state
}");