DownloadVersionInfoAsync() public method

public DownloadVersionInfoAsync ( Uri source, Action handler ) : bool
source System.Uri
handler Action
return bool
Beispiel #1
0
 public bool CheckVersion()
 {
     return(appcastReader.DownloadVersionInfoAsync(url, desc => {
         var new_versions = desc
                            .Where(v => v.PublishDate.Date > currentVersion)
                            .OrderByDescending(v => v.PublishDate);
         if (new_versions.Count() > 0 && NewVersionFound != null)
         {
             NewVersionFound(this, new NewVersionFoundEventArgs(new_versions));
         }
     }));
 }