Пример #1
0
 public void Test(string name, int age, string msg)
 {
     Current.SendAsync("test", "server", $"欢迎 {name},{age} “{msg}”").Wait();
     AllConnections.SendAsync("test", name, msg).Wait();
 }
Пример #2
0
 public void TestJson(Person p, string msg)
 {
     Current.SendAsync("testJson", new { Name = "server" }, $"欢迎 {p.Name},{p.Age} “{msg}”").Wait();
     AllConnections.SendAsync("testJson", new { p.Name }, msg).Wait();
 }