Downloader icon indicating copy to clipboard operation
Downloader copied to clipboard

Download Failed

Open ZCOREP opened this issue 2 years ago • 4 comments

If the download was failed. How do i know? For example, the user's internet is disconnected.

ZCOREP avatar Jul 11 '22 16:07 ZCOREP

Download completed events that can include occurring errors or cancelled or download completed successfully. downloader.DownloadFileCompleted += OnDownloadFileCompleted;

bezzad avatar Jul 12 '22 10:07 bezzad

Hello , I disconnected my wifi but "OnDownloadFileCompleted" is not working!

ZCOREP avatar Jul 13 '22 10:07 ZCOREP

I checked it and worked for me. image

Maybe you assigned int.MaxValue for DownloadConfiguration.MaxTryAgainOnFailover. So, the Downloader tried again and failed again and repeated indefinitely. Please check the MaxTryAgainOnFailover option and if it's less than 5 and also doesn't work, send me a part of your configuration or application to will be checked.

var config =  new DownloadConfiguration {
                MaxTryAgainOnFailover = 1, // the maximum number of times to fail               
                Timeout = 500, // timeout (millisecond) per stream block reader, default values is 1000
}

bezzad avatar Jul 13 '22 16:07 bezzad

Could you had solve your problem? @ZCOREP

bezzad avatar Jul 20 '22 18:07 bezzad

Yes Thanks

ZCOREP avatar Aug 23 '22 08:08 ZCOREP