18 references to InternalState
System.Net.WebSockets.Client (18)
System\Net\WebSockets\ClientWebSocket.cs (18)
15
private
InternalState
_state;
20
_state =
InternalState
.Created;
44
case
InternalState
.Created:
46
case
InternalState
.Connecting:
49
Debug.Assert(_state ==
InternalState
.Disposed);
105
switch (Interlocked.CompareExchange(ref _state,
InternalState
.Connecting,
InternalState
.Created))
107
case
InternalState
.Disposed:
110
case
InternalState
.Created:
135
if (Interlocked.CompareExchange(ref _state,
InternalState
.Connected,
InternalState
.Connecting) !=
InternalState
.Connecting)
137
Debug.Assert(_state ==
InternalState
.Disposed);
167
ObjectDisposedException.ThrowIf(_state ==
InternalState
.Disposed, this);
169
if (_state !=
InternalState
.Connected)
183
if (_state !=
InternalState
.Disposed)
192
if (Interlocked.Exchange(ref _state,
InternalState
.Disposed) !=
InternalState
.Disposed)