Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 /// <summary>
 /// Unregisters the TrafficMonitor background task.
 /// </summary>
 public static void UnregisterTrafficMonitor()
 {
     BackgroundTaskHelper.UnregisterBackgroundTask("TrafficMonitor");
 }