예제 #1
0
        protected override void EstablishContext()
        {
            _eventArgs = new DeviceMonitorExceptionEventArgs(new Exception());

            _observer = _scheduler.CreateObserver <DeviceMonitorEvent>();

            _subscription = _monitor
                            .ObserveEvents()
                            .Subscribe(_observer);
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void OnDevicesMonitorException(object sender, DeviceMonitorExceptionEventArgs args)
 {
     OnReadersMonitorException?.Invoke(args.Exception);
 }
예제 #3
0
 private static void OnMonitorException(object sender, DeviceMonitorExceptionEventArgs args)
 {
     // notify to duty officer
 }
예제 #4
0
 private static void OnMonitorException(object sender, DeviceMonitorExceptionEventArgs args)
 {
     Console.WriteLine($"Exception: {args.Exception}");
 }