/// <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); }
/// <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); }