Beispiel #1
0
        private object SendEvent(OperationType operType, object operObj)
        {
            OperationEvent operEvent = new OperationEvent(operType, operObj);
            m_operEvents.Enqueue(operEvent);
            m_waitHandle.Set();

            //synchronously wait for the result
            return operEvent.WaitUntilProcessed();
        }