Removed virtual

This commit is contained in:
Michael Bucari-Tovo 2021-10-05 16:49:06 -06:00
parent e466d63e76
commit f0541b498f
2 changed files with 7 additions and 7 deletions

View File

@ -56,17 +56,17 @@ namespace FileLiberator
/// <returns>True == success</returns> /// <returns>True == success</returns>
public abstract Task<StatusHandler> ProcessAsync(LibraryBook libraryBook); public abstract Task<StatusHandler> ProcessAsync(LibraryBook libraryBook);
public virtual void OnBegin(LibraryBook libraryBook) public void OnBegin(LibraryBook libraryBook)
{ {
Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(Begin), Book = libraryBook.LogFriendly() }); Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(Begin), Book = libraryBook.LogFriendly() });
Begin?.Invoke(this, libraryBook); Begin?.Invoke(this, libraryBook);
} }
public virtual void OnCompleted(LibraryBook libraryBook) public void OnCompleted(LibraryBook libraryBook)
{ {
Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(Completed), Book = libraryBook.LogFriendly() }); Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(Completed), Book = libraryBook.LogFriendly() });
Completed?.Invoke(this, libraryBook); Completed?.Invoke(this, libraryBook);
} }
public virtual void OnStatusUpdate(string statusUpdate) public void OnStatusUpdate(string statusUpdate)
{ {
Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(StatusUpdate), Status = statusUpdate }); Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(StatusUpdate), Status = statusUpdate });
StatusUpdate?.Invoke(this, statusUpdate); StatusUpdate?.Invoke(this, statusUpdate);

View File

@ -9,21 +9,21 @@ namespace FileLiberator
public event EventHandler<DownloadProgress> StreamingProgressChanged; public event EventHandler<DownloadProgress> StreamingProgressChanged;
public event EventHandler<TimeSpan> StreamingTimeRemaining; public event EventHandler<TimeSpan> StreamingTimeRemaining;
public event EventHandler<string> StreamingCompleted; public event EventHandler<string> StreamingCompleted;
public virtual void OnStreamingBegin(string filePath) public void OnStreamingBegin(string filePath)
{ {
Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(StreamingBegin), Message = filePath }); Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(StreamingBegin), Message = filePath });
StreamingBegin?.Invoke(this, filePath); StreamingBegin?.Invoke(this, filePath);
} }
public virtual void OnStreamingCompleted(string filePath) public void OnStreamingCompleted(string filePath)
{ {
Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(StreamingCompleted), Message = filePath }); Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(StreamingCompleted), Message = filePath });
StreamingCompleted?.Invoke(this, filePath); StreamingCompleted?.Invoke(this, filePath);
} }
public virtual void OnStreamingProgressChanged(DownloadProgress progress) public void OnStreamingProgressChanged(DownloadProgress progress)
{ {
StreamingProgressChanged?.Invoke(this, progress); StreamingProgressChanged?.Invoke(this, progress);
} }
public virtual void OnStreamingTimeRemaining(TimeSpan timeRemaining) public void OnStreamingTimeRemaining(TimeSpan timeRemaining)
{ {
StreamingTimeRemaining?.Invoke(this, timeRemaining); StreamingTimeRemaining?.Invoke(this, timeRemaining);
} }