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