ProcessDelayedActionsAsync() 공개 메소드

Processes the delayed actions, executes them as necessary and sends history statistics.
public ProcessDelayedActionsAsync ( bool flushHistory = true ) : System.Threading.Tasks.Task
flushHistory bool
리턴 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();
     }
 }