13 references to AsyncReceiveState
System.ServiceModel (13)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (13)
547
this.asyncReceiveState =
AsyncReceiveState
.Finished;
563
if (Interlocked.CompareExchange(ref this.asyncReceiveState,
AsyncReceiveState
.Cancelled,
AsyncReceiveState
.Started) ==
AsyncReceiveState
.Started)
592
if (this.asyncReceiveState ==
AsyncReceiveState
.Cancelled)
601
Fx.Assert(this.asyncReceiveState ==
AsyncReceiveState
.Finished, "this.asyncReceiveState is not AsyncReceiveState.Finished: " + this.asyncReceiveState);
836
int currentState = Interlocked.CompareExchange(ref this.asyncReceiveState,
AsyncReceiveState
.Started,
AsyncReceiveState
.Finished);
837
Fx.Assert(currentState ==
AsyncReceiveState
.Finished, "currentState is not AsyncReceiveState.Finished: " + currentState);
838
if (currentState !=
AsyncReceiveState
.Finished)
921
if (Interlocked.CompareExchange(ref this.asyncReceiveState,
AsyncReceiveState
.Finished,
AsyncReceiveState
.Started) ==
AsyncReceiveState
.Started)