Removed OctoKit dependency and updated file downloaders to support authorization headers

This commit is contained in:
Caelan Sayler
2022-02-03 12:13:58 +00:00
parent 80754f171c
commit b64d85db0d
7 changed files with 185 additions and 210 deletions

View File

@@ -17,17 +17,17 @@ namespace Squirrel.Tests
{
public class FakeUrlDownloader : IFileDownloader
{
public Task<byte[]> DownloadBytes(string url)
public Task<byte[]> DownloadBytes(string url, string auth)
{
return Task.FromResult(new byte[0]);
}
public Task DownloadFile(string url, string targetFile, Action<int> progress)
public Task DownloadFile(string url, string targetFile, Action<int> progress, string auth)
{
return Task.CompletedTask;
}
public Task<string> DownloadString(string url)
public Task<string> DownloadString(string url, string auth)
{
return Task.FromResult("");
}