DownloadVersionInfoTaskAsync() public method

public DownloadVersionInfoTaskAsync ( Uri source, CancellationToken cancel_token ) : Task>
source System.Uri
cancel_token System.Threading.CancellationToken
return Task>
コード例 #1
0
ファイル: Updater.cs プロジェクト: mozsh/peercaststation
        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));
        }