Esempio 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()
 {
     eventHandlerForDevice = new EventHandlerForDevice(false);
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new instance of EventHandlerForDevice, 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()
 {
     eventHandlerForDevice = new EventHandlerForDevice(true);
 }