19 references to OperationState
System.Net.Sockets (19)
System\Net\Sockets\SocketAsyncEventArgs.cs (19)
87private OperationState _operating; 485_operating = OperationState.Free; 503if (Interlocked.CompareExchange(ref _operating, OperationState.Disposed, OperationState.Free) != OperationState.Free) 530OperationState status = Interlocked.CompareExchange(ref _operating, OperationState.Configuring, OperationState.Free); 531if (status != OperationState.Free) 537private void ThrowForNonFreeStatus(OperationState status) 539Debug.Assert(status == OperationState.InProgress || status == OperationState.Configuring || status == OperationState.Disposed, $"Unexpected status: {status}"); 540ObjectDisposedException.ThrowIf(status == OperationState.Disposed, this); 549OperationState status = Interlocked.CompareExchange(ref _operating, OperationState.InProgress, OperationState.Free); 550if (status != OperationState.Free) 611if (_operating == OperationState.InProgress && _completedOperation == SocketAsyncOperation.Connect)