示例#1
0
 static void OnEchoReq(EchoReq req)
 {
     var resp = new EchoResp {
         SessionHandle = req.SessionHandle,
         Message = req.Message
     };
     Flow.Post(resp);
 }
示例#2
0
 public void OnDisconnect()
 {
     var e = new EchoResp {
         SessionHandle = LinkSession.Handle
     };
     Flow.Unbind(e, Send);
 }
示例#3
0
 void OnEchoResp(EchoResp e)
 {
     link.Send(new EchoReq {
         Message = message
     });
 }