Exemplo n.º 1
0
 string getUpdate()
 {
     var messages = new List<LogEventInfoEx>();
     lock (logEventQueue)
     {
         while (logEventQueue.Count > 0)
         {
             var info = logEventQueue.Dequeue();
             messages.Add(info);
         }
     }
     var element = new LogEventInfoXmlWriter().toXElement(messages.ToArray());
     return element.ToString();
 }
Exemplo n.º 2
0
        string getUpdate()
        {
            var messages = new List <LogEventInfoEx>();

            lock (logEventQueue)
            {
                while (logEventQueue.Count > 0)
                {
                    var info = logEventQueue.Dequeue();
                    messages.Add(info);
                }
            }
            var element = new LogEventInfoXmlWriter().toXElement(messages.ToArray());

            return(element.ToString());
        }