public void Handle(PongMessage message) { ConsoleWriter.Write(ConsoleColor.Cyan, "Got a pong back with name: " + message.Name); }
// "Handle" is recognized by Jasper as a message handling // method. Handler methods can be static or instance methods public static void Handle(PongMessage message) { ConsoleWriter.Write(ConsoleColor.Blue, $"Got pong #{message.Number}"); }