Moved event logging to LibationBaseForm
This commit is contained in:
parent
803a0b7ccf
commit
71075838eb
10 changed files with 61 additions and 63 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue