4 writes to _state
System.Net.WebSockets.Client (4)
System\Net\WebSockets\ClientWebSocket.cs (4)
20_state = InternalState.Created; 108switch (Interlocked.CompareExchange(ref _state, InternalState.Connecting, InternalState.Created)) 138if (Interlocked.CompareExchange(ref _state, InternalState.Connected, InternalState.Connecting) != InternalState.Connecting) 195if (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); 140Debug.Assert(_state == InternalState.Disposed); 170ObjectDisposedException.ThrowIf(_state == InternalState.Disposed, this); 172if (_state != InternalState.Connected) 186if (_state != InternalState.Disposed)