Beispiel #1
0
        public async Task <Release> GetLatestRelease()
        {
            IEnumerable <Release> releases = await Releases.GetReleases();

            if (releases == null)
            {
                return(null);
            }

            Release release =
                releases.OrderBy(x => x.PublishedAt).First(x => new Version(x.TagName) > GetCurrentVersion());

            return(release);
        }