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