示例#1
0
 /// <summary>
 /// Unregister a ApplicationTriggerTask.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UnregisterBackgroundTask(object sender, RoutedEventArgs e)
 {
     BackgroundTaskSample.UnregisterBackgroundTasks(BackgroundTaskSample.ApplicationTriggerTaskName);
     BackgroundTaskSample.ApplicationTriggerTaskResult = "";
     UpdateUI();
 }
 /// <summary>
 /// Unregister a ServicingCompleteTask.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UnregisterBackgroundTask(object sender, RoutedEventArgs e)
 {
     BackgroundTaskSample.UnregisterBackgroundTasks(BackgroundTaskSample.ServicingCompleteTaskName);
     UpdateUI();
 }
 /// <summary>
 /// Unregister a TimeTriggeredTask.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UnregisterBackgroundTask(object sender, RoutedEventArgs e)
 {
     BackgroundTaskSample.UnregisterBackgroundTasks(BackgroundTaskSample.TimeTriggeredTaskName);
     UpdateUI();
 }
 /// <summary>
 /// Unregister a SampleBackgroundTaskWithCondition.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UnregisterBackgroundTask(object sender, RoutedEventArgs e)
 {
     BackgroundTaskSample.UnregisterBackgroundTasks(BackgroundTaskSample.SampleBackgroundTaskWithConditionName);
     UpdateUI();
 }
示例#5
0
 /// <summary>
 /// Unregister a Grouped Background Task.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UnregisterGroupedTask(object sender, RoutedEventArgs e)
 {
     BackgroundTaskSample.UnregisterBackgroundTasks(BackgroundTaskSample.GroupedBackgroundTaskName, group);
     UpdateUI();
 }