/// <summary>
 /// Creates a new instance of EventHandlerForSerialEclo, enables auto reconnect, and uses it as the Current instance.
 /// </summary>
 public static void CreateNewEventHandlerForDevice()
 {
     eventHandlerForNanoFrameworkDevice = new EventHandlerForSerialDevice(false);
 }
 /// <summary>
 /// Creates a new instance of EventHandlerForSerialEclo, disables auto reconnect, and uses it as the Current instance.
 /// Background tasks do not need to worry about app events, so we will not be registering for app events
 /// </summary>
 public static void CreateNewEventHandlerForDeviceForBackgroundTasks()
 {
     eventHandlerForNanoFrameworkDevice = new EventHandlerForSerialDevice(true);
 }