18 references to InternalState
System.Net.WebSockets.Client (18)
System\Net\WebSockets\ClientWebSocket.cs (18)
14private InternalState _state; 19_state = InternalState.Created; 43case InternalState.Created: 45case InternalState.Connecting: 48Debug.Assert(_state == InternalState.Disposed); 104switch (Interlocked.CompareExchange(ref _state, InternalState.Connecting, InternalState.Created)) 106case InternalState.Disposed: 109case InternalState.Created: 134if (Interlocked.CompareExchange(ref _state, InternalState.Connected, InternalState.Connecting) != InternalState.Connecting) 136Debug.Assert(_state == InternalState.Disposed); 166ObjectDisposedException.ThrowIf(_state == InternalState.Disposed, this); 168if (_state != InternalState.Connected) 182if (_state != InternalState.Disposed) 191if (Interlocked.Exchange(ref _state, InternalState.Disposed) != InternalState.Disposed)