4 writes to _state
System.Net.WebSockets.Client (4)
System\Net\WebSockets\ClientWebSocket.cs (4)
20_state = InternalState.Created; 105switch (Interlocked.CompareExchange(ref _state, InternalState.Connecting, InternalState.Created)) 135if (Interlocked.CompareExchange(ref _state, InternalState.Connected, InternalState.Connecting) != InternalState.Connecting) 192if (Interlocked.Exchange(ref _state, InternalState.Disposed) != InternalState.Disposed)
6 references to _state
System.Net.WebSockets.Client (6)
System\Net\WebSockets\ClientWebSocket.cs (6)
42switch (_state) 49Debug.Assert(_state == InternalState.Disposed); 137Debug.Assert(_state == InternalState.Disposed); 167ObjectDisposedException.ThrowIf(_state == InternalState.Disposed, this); 169if (_state != InternalState.Connected) 183if (_state != InternalState.Disposed)