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