0

Is it possible to start DownloadOperation but not to wait for the download to complete? Basically, I want to write a background task that runs on Timer, schedules some number of downloads and finishes. Code that handles progress/complete is planned to run separately via AttachAsync when the user awakes UI to monitor the progress.

I mean I need something like an old-school approach that calls "void/Task RunDownload" but is not obliged to subscribe to events like OnProgress/OnCompleted.

Calling

downloader.CreateDownload(uri, file).StartAsync()

without await is a bad idea - I want to be sure the operation is scheduled and later accessible via BackgroundDownloader.GetCurrentDownloadsAsync()

Tomy
  • 823
  • 1
  • 7
  • 11

0 Answers0