c# - DownloadOperation.StartAsync() has slow start up time -


i'm using backgrounddownloader class in windows-store-app download files, , i'm wondering if i'm doing wrong since start time download long big files.

code:

util.debugwriteln("creating downloader"); backgrounddownloader downloader = new backgrounddownloader(); dwo = downloader.createdownload(new uri(request), destination); util.debugwriteln("downloadoperation created"); 

this call starts download , takes such long time:

util.debugwriteln("starting download async"); await dwo.startasync().astask(progresscallback); 

log:

7/23/2013 1:13:20 pm: threadhandler.cs->downloadfile(): attempting download of file: /200mb.zip

7/23/2013 1:13:20 pm: util.cs->getstoragefile(): getting storage file for: 200mb.zip

7/23/2013 1:13:20 pm: synergica.cs->downloadfile(): creating downloader

7/23/2013 1:13:20 pm: synergica.cs->downloadfile(): downloadoperation created

7/23/2013 1:13:20 pm: threadhandler.cs->downloadfile(): starting download async

29 seconds later

7/23/2013 1:13:49 pm: threadhandler.cs->defaultprogresscallback(): download progress file: 200mb.zip -> 0%

7/23/2013 1:13:50 pm: threadhandler.cs->defaultprogresscallback(): download progress file: 200mb.zip -> 28%

7/23/2013 1:13:50 pm: threadhandler.cs->defaultprogresscallback(): download progress file: 200mb.zip -> 56%

7/23/2013 1:13:51 pm: threadhandler.cs->defaultprogresscallback(): download progress file: 200mb.zip -> 84%

7/23/2013 1:13:51 pm: threadhandler.cs->defaultprogresscallback(): download progress file: 200mb.zip -> 100%

7/23/2013 1:13:51 pm: threadhandler.cs->downloadfile(): success

am calling startasync() method in wrong way? (sitting on same lan server hosting file)


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -