void Msgr_ServerNotification(object sender, ServerNotificationEventArgs e) { using (ConsoleExt.WithColor(eventColor)) { Console.WriteLine("Server notification:"); Console.Write(e.Message); Console.WriteLine(); } }
void OnServerNotification(ServerNotificationEventArgs e) { EventHandler<ServerNotificationEventArgs> handler = ServerNotification; if (handler != null) handler(this, e); }