How to control timeout DownloadOperation::StartAsync ?

Answered How to control timeout DownloadOperation::StartAsync ?

  • Thursday, April 05, 2012 11:41 PM
     
      Has Code

    Hi,

    How i can control timeout of download operation?

    BackgroundDownloader^ bd = ref new BackgroundDownloader( ); DownloadOperation^ loader_op = bd->CreateDownload( address, file ); task< DownloadOperation^ > downloadTask( loader_op->StartAsync( ) ); downloadTask.then( [ = ]( DownloadOperation^ op ) { ... } );

     

    I don't see the way to pass cancellation_token to that API.

    • Edited by Vladbph Thursday, April 05, 2012 11:41 PM
    • Edited by Vladbph Thursday, April 05, 2012 11:43 PM
    •  

All Replies