Moved event logging to LibationBaseForm

This commit is contained in:
Mbucari 2021-09-23 19:29:25 -06:00
parent 803a0b7ccf
commit 71075838eb
10 changed files with 61 additions and 63 deletions

View file

@ -13,12 +13,6 @@ namespace FileLiberator
public event EventHandler<string> StreamingCompleted;
public event EventHandler<TimeSpan> StreamingTimeRemaining;
public DownloadFile()
{
StreamingBegin += (o, e) => Serilog.Log.Logger.Information("Event fired {@DebugInfo}", new { Name = nameof(StreamingBegin), Message = e });
StreamingCompleted += (o, e) => Serilog.Log.Logger.Information("Event fired {@DebugInfo}", new { Name = nameof(StreamingCompleted), Message = e });
}
public async Task<string> PerformDownloadFileAsync(string downloadUrl, string proposedDownloadFilePath)
{
var client = new HttpClient();