Exemple #1
0
        private static xbs_message DequeueMessage(Queue <xbs_message> queue)
        {
            xbs_message msg = null;

            lock (queue)
                if (queue.Count > 0)
                {
                    msg = queue.Dequeue();
                }
            return(msg);
        }
Exemple #2
0
        private static String DequeueMessageString(Queue <xbs_message> queue)
        {
            String      str = null;
            xbs_message msg = DequeueMessage(queue);

            if (msg != null)
            {
                str = msg.ToString();
            }
            return(str);
        }