Пример #1
0
 /// <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);
 }
Пример #2
0
 private static void DisplayOnConsole(object sender, BookServiceEventArgs e)
 {
     Console.WriteLine(e.Output);
 }