private void SendControlCommand(int operation) { Interlocked.CompareExchange(ref doOperation, operation, doOperation); NotifyAllSubscribers(); }