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