ProcessDelayedActionsAsync() public method

Processes the delayed actions, executes them as necessary and sends history statistics.
public ProcessDelayedActionsAsync ( bool flushHistory = true ) : System.Threading.Tasks.Task
flushHistory bool
return System.Threading.Tasks.Task
        public async void Run(IBackgroundTaskInstance taskInstance)
        {
            System.Diagnostics.Debug.WriteLine("TimedBackgroundWorker.Run()");
            Deferral = taskInstance.GetDeferral();

            await BackgroundEngine.InitializeAsync();

            await BackgroundEngine.ProcessDelayedActionsAsync();
        }
 private void OnFinished(object sender, BackgroundWorkerType type)
 {
     if (type == BackgroundWorkerType.AdvertisementWorker)
     {
         BackgroundEngine.ProcessDelayedActionsAsync(false).ConfigureAwait(false);
     }
     else
     {
         Deferral?.Complete();
         BackgroundEngine.Finished -= OnFinished;
         BackgroundEngine?.Dispose();
     }
 }