Пример #1
0
 /// <summary>
 /// Starts the timer that flushes the log queue.
 /// </summary>
 public bool Start()
 {
     if (LogType.Disabled != RockfishServerPlugIn.LogType())
     {
         m_timer.Start();
         return(true);
     }
     return(false);
 }
Пример #2
0
 /// <summary>
 /// Adds an item to the queue.
 /// </summary>
 public void Enqueue(RockfishHeader header)
 {
     if (null != header)
     {
         lock (m_locker)
         {
             if (RockfishLog.LogType.Disabled != RockfishServerPlugIn.LogType())
             {
                 m_queue.Enqueue(header);
             }
         }
     }
 }