/// <summary> /// Method that incapsulates event call. /// </summary> /// <param name="sender"> /// Caller object. /// </param> /// <param name="e"> /// Event data. /// </param> protected virtual void OnOutput(object sender, BookServiceEventArgs e) { this.BookEventOutput?.Invoke(sender, e); }
private static void DisplayOnConsole(object sender, BookServiceEventArgs e) { Console.WriteLine(e.Output); }