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