Ejemplo n.º 1
0
        public void GetUpdateUrl()
        {
            Dynamics365CustomizingDownloader.Core.Update.UpdateChecker updateChecker = new Dynamics365CustomizingDownloader.Core.Update.UpdateChecker();
            Uri updateUrl = updateChecker.GetUpdateURL(GitHubApiUrl);

            // ToDo validate Url/Output
        }
Ejemplo n.º 2
0
        public void GithubRetrieveReleaseInfo()
        {
            Dynamics365CustomizingDownloader.Core.Update.UpdateChecker updateChecker = new Dynamics365CustomizingDownloader.Core.Update.UpdateChecker();
            var release = updateChecker.GetReleaseInfo(GitHubApiUrl);

            if (release == null || release.Name == null)
            {
                throw new Exception("Release retrieve failed.");
            }
        }
Ejemplo n.º 3
0
 public void GitHubUpdateCheck()
 {
     Dynamics365CustomizingDownloader.Core.Update.UpdateChecker updateChecker = new Dynamics365CustomizingDownloader.Core.Update.UpdateChecker();
     bool updateAvailable = updateChecker.IsUpdateAvailable(GitHubApiUrl);
 }