private void SignalCaptured(object sender, MSignal.SIGNAL sig) { try { switch (sig) { case MSignal.SIGNAL.DEVICE_FAILURE: this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, new Action(() => DeviceFailure(sender))); break; } } catch (Exception ex) { Auxiliary.Logger._log.Error(ex); } }
public void SignalCaptured(Object sender, MSignal.SIGNAL sig) { try { switch (sig) { case MSignal.SIGNAL.DEVICE_FAILURE: this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, new Action(() => DeviceFailure(sender))); break; } } catch (Exception ex) { //Log.Info(ex); } }