4 references to Running
System.Net.Sockets (4)
System\Net\Sockets\SocketAsyncContext.Unix.cs (4)
157
State oldState = Interlocked.CompareExchange(ref _state, State.
Running
, State.Waiting);
169
Debug.Assert(_state is State.
Running
or State.RunningWithPendingCancellation, "Unexpected operation state");
182
Debug.Assert(state is State.
Running
or State.RunningWithPendingCancellation, $"Unexpected operation state: {(State)state}");
184
newState = (state == State.
Running
? State.Waiting : State.Canceled);