예제 #1
0
        /**********************************************************/

        public void queueOptUpdate(List <oadrDistributeEventTypeOadrEvent> evts, OptTypeType optType)
        {
            lock (m_qOptUpdate)
            {
                OptUpdate optUpdate = new OptUpdate(evts, optType);
                m_qOptUpdate.Enqueue(optUpdate);
            }
        }
예제 #2
0
        /**********************************************************/

        public CreatedEvent processOptUpdate(VEN2b ven, string requestID)
        {
            lock (m_qOptUpdate)
            {
                if (m_qOptUpdate.Count == 0)
                {
                    return(null);
                }

                OptUpdate optUpdate = m_qOptUpdate.Dequeue();

                return(ven.createdEvent(requestID, optUpdate.Evts, optUpdate.OptType));
            }
        }