11 references to AsyncReceiveState
dotnet-svcutil-lib (11)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (11)
499
_asyncReceiveState =
AsyncReceiveState
.Finished;
510
if (Interlocked.CompareExchange(ref _asyncReceiveState,
AsyncReceiveState
.Cancelled,
AsyncReceiveState
.Started) ==
AsyncReceiveState
.Started)
725
int currentState = Interlocked.CompareExchange(ref _asyncReceiveState,
AsyncReceiveState
.Started,
AsyncReceiveState
.Finished);
726
Fx.Assert(currentState ==
AsyncReceiveState
.Finished, "currentState is not AsyncReceiveState.Finished: " + currentState);
727
if (currentState !=
AsyncReceiveState
.Finished)
806
if (Interlocked.CompareExchange(ref _asyncReceiveState,
AsyncReceiveState
.Finished,
AsyncReceiveState
.Started) ==
AsyncReceiveState
.Started)