Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of EventHandlerForDevice, enables auto reconnect, and uses it as the Current instance.
 /// </summary>
 public static void CreateNewEventHandlerForDevice()
 {
     handler = new MaintenanceToolHandler();
 }
Ejemplo n.º 2
0
 public MaintenanceToolHandler() {
     ResetReadCancellationTokenSource();
     ResetWriteCancellationTokenSource();
     handler = this;
 }