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);
108
switch (Interlocked.CompareExchange(ref _state,
InternalState
.Connecting,
InternalState
.Created))
110
case
InternalState
.Disposed:
113
case
InternalState
.Created:
138
if (Interlocked.CompareExchange(ref _state,
InternalState
.Connected,
InternalState
.Connecting) !=
InternalState
.Connecting)
140
Debug.Assert(_state ==
InternalState
.Disposed);
170
ObjectDisposedException.ThrowIf(_state ==
InternalState
.Disposed, this);
172
if (_state !=
InternalState
.Connected)
186
if (_state !=
InternalState
.Disposed)
195
if (Interlocked.Exchange(ref _state,
InternalState
.Disposed) !=
InternalState
.Disposed)