예제 #1
0
 static void r_ReadException(object sender, ReaderExceptionEventArgs e)
 {
     Console.WriteLine("Error: " + e.ReaderException.Message);
 }
예제 #2
0
 static void ReadExceptionHandler(Object sender, ReaderExceptionEventArgs e)
 {
     Console.WriteLine("Reader threw an exception: " + e.ReaderException.Message);
     Console.WriteLine(e.ReaderException.ToString());
 }
예제 #3
0
 static void r_ReadException(object sender, ReaderExceptionEventArgs e)
 {
     Reader r = (Reader)sender;
     Console.WriteLine("Exception reader uri {0}",(string)r.ParamGet("/reader/uri"));
     Console.WriteLine("Error: " + e.ReaderException.Message);
 }
예제 #4
0
 private void ReadException(Object sender, ReaderExceptionEventArgs e)
 {
     if (-1 != e.ReaderException.Message.IndexOf("DEBUG"))
     {
         logger.Info("ReadException listener: " + e.ReaderException.Message);
         return;
     }
     logger.Error("ReadException listener: " + e.ReaderException.ToString());
     if (-1 != e.ReaderException.Message.IndexOf("temperature"))
     {
         this.BeginInvoke(new OverTemperatureChange(ShowOverTemperature));
     }
     else
     {
         SetDebug(e.ReaderException.Message);
         logger.Debug("Calling StopReads in ReadException listener...");
         StopReads();
         logger.Debug("StopReads completed in ReadException listener");
     }
 }