4 writes to _state
System.Net.WebSockets.Client (4)
System\Net\WebSockets\ClientWebSocket.cs (4)
20
_state
= InternalState.Created;
108
switch (Interlocked.CompareExchange(ref
_state
, InternalState.Connecting, InternalState.Created))
138
if (Interlocked.CompareExchange(ref
_state
, InternalState.Connected, InternalState.Connecting) != InternalState.Connecting)
195
if (Interlocked.Exchange(ref
_state
, InternalState.Disposed) != InternalState.Disposed)
6 references to _state
System.Net.WebSockets.Client (6)
System\Net\WebSockets\ClientWebSocket.cs (6)
42
switch (
_state
)
49
Debug.Assert(
_state
== InternalState.Disposed);
140
Debug.Assert(
_state
== InternalState.Disposed);
170
ObjectDisposedException.ThrowIf(
_state
== InternalState.Disposed, this);
172
if (
_state
!= InternalState.Connected)
186
if (
_state
!= InternalState.Disposed)