/// <summary>
 /// Registers the TrafficMonitor background task.
 /// </summary>
 public static void RegisterTrafficMonitor()
 {
     BackgroundTaskHelper.RegisterBackgroundTask(
         taskEntryPoint: "TrafficMonitor.TrafficMonitor",
         taskName: "TrafficMonitor",
         trigger: new MaintenanceTrigger(freshnessTime: 15, oneShot: false),
         condition: new SystemCondition(SystemConditionType.InternetAvailable));
 }
 /// <summary>
 /// Unregisters the TrafficMonitor background task.
 /// </summary>
 public static void UnregisterTrafficMonitor()
 {
     BackgroundTaskHelper.UnregisterBackgroundTask("TrafficMonitor");
 }