protected override void EstablishContext() { _eventArgs = new DeviceMonitorExceptionEventArgs(new Exception()); _observer = _scheduler.CreateObserver <DeviceMonitorEvent>(); _subscription = _monitor .ObserveEvents() .Subscribe(_observer); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void OnDevicesMonitorException(object sender, DeviceMonitorExceptionEventArgs args) { OnReadersMonitorException?.Invoke(args.Exception); }
private static void OnMonitorException(object sender, DeviceMonitorExceptionEventArgs args) { // notify to duty officer }
private static void OnMonitorException(object sender, DeviceMonitorExceptionEventArgs args) { Console.WriteLine($"Exception: {args.Exception}"); }