Example #1
0
 /// <summary>
 /// Exception event as a NetworkMonitorEventListener
 /// </summary>
 /// <param name="ex"> Exception </param>
 public virtual void networkException(DeviceMonitorException ex)
 {
     if (ex.Exception is OneWireIOException)
     {
         Debug.Write(".IO.");
     }
     else
     {
         Debug.Write(ex);
     }
     Debug.WriteLine(ex.StackTrace.ToString());
 }
Example #2
0
 /// <summary>
 /// Depart event as a NetworkMonitorEventListener
 /// </summary>
 /// <param name="owme"> DeviceMonitorException depart </param>
 public virtual void networkException(DeviceMonitorException dexc)
 {
     Debug.WriteLine("ERROR: " + dexc.ToString());
 }