public GitHubUpdateRepository(GitHubDownloadType downloadType, GitHubUpdateInfo.Factory gitHubUpdateInfoFactory, string name, string repository) : base(UpdateRepositoryType.GitHub, name, repository) { DownloadType = downloadType; _repoReleasesUrl = $"{BaseUrl}/{repository}/releases"; _gitHubUpdateInfoFactory = gitHubUpdateInfoFactory; }
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; }