Example #1
0
        public void OnLogging(XmlBlasterLogLevel logLevel, string location, string message)
        {
            I_LoggingCallback l = this.loggingCallback;

            if (l != null)
            {
                l.OnLogging(logLevel, location, message);
            }
            else
            {
                Console.WriteLine(logLevel + " " + location + " " + message);
            }
        }
Example #2
0
 public bool Start()
 {
     if (this.sleepMillis < 1)
     {
         return(false);
     }
     lock (locker)
     {
         if (this.running)
         {
             return(false);
         }
         this.running = true;
         this.thread  = new Thread(this.Run);
         this.thread.Start();
     }
     logger.OnLogging(XmlBlasterLogLevel.INFO, ME, "Start pollInterval" + sleepMillis);
     return(true);
 }