4 writes to _state
System.Net.WebSockets.Client (4)
System\Net\WebSockets\ClientWebSocket.cs (4)
19_state = InternalState.Created; 104switch (Interlocked.CompareExchange(ref _state, InternalState.Connecting, InternalState.Created)) 134if (Interlocked.CompareExchange(ref _state, InternalState.Connected, InternalState.Connecting) != InternalState.Connecting) 191if (Interlocked.Exchange(ref _state, InternalState.Disposed) != InternalState.Disposed)
6 references to _state
System.Net.WebSockets.Client (6)
System\Net\WebSockets\ClientWebSocket.cs (6)
41switch (_state) 48Debug.Assert(_state == InternalState.Disposed); 136Debug.Assert(_state == InternalState.Disposed); 166ObjectDisposedException.ThrowIf(_state == InternalState.Disposed, this); 168if (_state != InternalState.Connected) 182if (_state != InternalState.Disposed)