From f0541b498ff4ad841d6dc722130813a1c61c851b Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Tue, 5 Oct 2021 16:49:06 -0600 Subject: [PATCH] Removed virtual --- FileLiberator/Processable.cs | 6 +++--- FileLiberator/Streamable.cs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/FileLiberator/Processable.cs b/FileLiberator/Processable.cs index f971051f..dd54df28 100644 --- a/FileLiberator/Processable.cs +++ b/FileLiberator/Processable.cs @@ -56,17 +56,17 @@ namespace FileLiberator /// True == success public abstract Task 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() }); 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() }); 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 }); StatusUpdate?.Invoke(this, statusUpdate); diff --git a/FileLiberator/Streamable.cs b/FileLiberator/Streamable.cs index e9d6f121..d1c6a8ad 100644 --- a/FileLiberator/Streamable.cs +++ b/FileLiberator/Streamable.cs @@ -9,21 +9,21 @@ namespace FileLiberator public event EventHandler StreamingProgressChanged; public event EventHandler StreamingTimeRemaining; public event EventHandler 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 }); 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 }); StreamingCompleted?.Invoke(this, filePath); } - public virtual void OnStreamingProgressChanged(DownloadProgress progress) + public void OnStreamingProgressChanged(DownloadProgress progress) { StreamingProgressChanged?.Invoke(this, progress); } - public virtual void OnStreamingTimeRemaining(TimeSpan timeRemaining) + public void OnStreamingTimeRemaining(TimeSpan timeRemaining) { StreamingTimeRemaining?.Invoke(this, timeRemaining); }