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); 105switch (Interlocked.CompareExchange(ref _state, InternalState.Connecting, InternalState.Created)) 107case InternalState.Disposed: 110case InternalState.Created: 135if (Interlocked.CompareExchange(ref _state, InternalState.Connected, InternalState.Connecting) != InternalState.Connecting) 137Debug.Assert(_state == InternalState.Disposed); 167ObjectDisposedException.ThrowIf(_state == InternalState.Disposed, this); 169if (_state != InternalState.Connected) 183if (_state != InternalState.Disposed) 192if (Interlocked.Exchange(ref _state, InternalState.Disposed) != InternalState.Disposed)