4 writes to _asyncReceiveState
System.ServiceModel.Http (4)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (4)
483
_asyncReceiveState
= AsyncReceiveState.Finished;
494
if (Interlocked.CompareExchange(ref
_asyncReceiveState
, AsyncReceiveState.Cancelled, AsyncReceiveState.Started) == AsyncReceiveState.Started)
697
int currentState = Interlocked.CompareExchange(ref
_asyncReceiveState
, AsyncReceiveState.Started, AsyncReceiveState.Finished);
778
if (Interlocked.CompareExchange(ref
_asyncReceiveState
, AsyncReceiveState.Finished, AsyncReceiveState.Started) == AsyncReceiveState.Started)