Ejemplo n.º 1
0
        void Msgr_ServerNotification(object sender, ServerNotificationEventArgs e)
        {
            using (ConsoleExt.WithColor(eventColor))
            {
                Console.WriteLine("Server notification:");
                Console.Write(e.Message);
                Console.WriteLine();
            }

        }
Ejemplo n.º 2
0
 void OnServerNotification(ServerNotificationEventArgs e)
 {
     EventHandler<ServerNotificationEventArgs> handler = ServerNotification;
     if (handler != null) handler(this, e);
 }