11 references to AsyncReceiveState
System.ServiceModel.Http (11)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (11)
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);
698
Fx.Assert(currentState ==
AsyncReceiveState
.Finished, "currentState is not AsyncReceiveState.Finished: " + currentState);
699
if (currentState !=
AsyncReceiveState
.Finished)
778
if (Interlocked.CompareExchange(ref _asyncReceiveState,
AsyncReceiveState
.Finished,
AsyncReceiveState
.Started) ==
AsyncReceiveState
.Started)