Ejemplo n.º 1
0
 public void Handle(PongMessage message)
 {
     ConsoleWriter.Write(ConsoleColor.Cyan, "Got a pong back with name: " + message.Name);
 }
Ejemplo n.º 2
0
 // "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}");
 }