Example #1
0
 public void Handle(Say cmd)
 {
     Send(cmd.User, $"{cmd.User} said: {cmd.Message}");
 }
Example #2
0
 Task On(Say x) => Send(x.Room, $"{Id} said: {x.Message}");
 static void Main(string[] args)
 {
     Console.WriteLine(Say.Hello(args.Length > 0 ? args[0] : null));
 }
Example #4
0
 public void Handle(Say cmd)
 {
     Send(cmd.User, string.Format("{0} said: {1}", cmd.User, cmd.Message));
 }
Example #5
0
 public void Handle(Say cmd)
 {
     Send(cmd.User, string.Format("{0} said: {1}", cmd.User, cmd.Message));
 }
Example #6
0
 Task On(Say x)    => Send(x.Room, $"{Id} said: {x.Message}");