DownloadVersionInfoTaskAsync() public method

public DownloadVersionInfoTaskAsync ( Uri source, CancellationToken cancel_token ) : Task>
source System.Uri
cancel_token System.Threading.CancellationToken
return Task>
Beispiel #1
0
        public async Task <IEnumerable <VersionDescription> > CheckVersionTaskAsync(CancellationToken cancel_token)
        {
            var results = await appcastReader.DownloadVersionInfoTaskAsync(url, cancel_token);

            if (results == null)
            {
                return(null);
            }
            return(results
                   .Where(v => v.PublishDate.Date > currentVersion)
                   .OrderByDescending(v => v.PublishDate));
        }