18 references to InternalState
System.Net.WebSockets.Client (18)
System\Net\WebSockets\ClientWebSocket.cs (18)
15private InternalState _state; 20_state = InternalState.Created; 44case InternalState.Created: 46case InternalState.Connecting: 49Debug.Assert(_state == InternalState.Disposed); 108switch (Interlocked.CompareExchange(ref _state, InternalState.Connecting, InternalState.Created)) 110case InternalState.Disposed: 113case InternalState.Created: 138if (Interlocked.CompareExchange(ref _state, InternalState.Connected, InternalState.Connecting) != InternalState.Connecting) 140Debug.Assert(_state == InternalState.Disposed); 170ObjectDisposedException.ThrowIf(_state == InternalState.Disposed, this); 172if (_state != InternalState.Connected) 186if (_state != InternalState.Disposed) 195if (Interlocked.Exchange(ref _state, InternalState.Disposed) != InternalState.Disposed)