示例#1
0
 public static void Send <T>(SprotoTypeBase rpcReq = null, RpcRspHandler rpcRspHandler = null)
 {
     if (rpcRspHandler != null)
     {
         session++;
         AddHandler(session, rpcRspHandler);
         NetCore.Send <T>(rpcReq, session);
     }
     else
     {
         NetCore.Send <T>(rpcReq);
     }
 }