コード例 #1
0
 public GitHubUpdateRepository(GitHubDownloadType downloadType, GitHubUpdateInfo.Factory gitHubUpdateInfoFactory, string name, string repository) :
     base(UpdateRepositoryType.GitHub, name, repository)
 {
     DownloadType             = downloadType;
     _repoReleasesUrl         = $"{BaseUrl}/{repository}/releases";
     _gitHubUpdateInfoFactory = gitHubUpdateInfoFactory;
 }
コード例 #2
0
 public GitHubUpdateRepository(HttpClient httpClient, GitHubDownloadType downloadType,
                               GitHubUpdateInfo.Factory gitHubUpdateInfoFactory, string name, string repository) :
     base(UpdateRepositoryType.GitHub, name, repository, GitHubRepositoryUrl.Build(repository))
 {
     DownloadType             = downloadType;
     _httpClient              = httpClient;
     _repoReleasesUrl         = $"{GitHubApiUrl}/{repository}/releases";
     _gitHubUpdateInfoFactory = gitHubUpdateInfoFactory;
 }