コード例 #1
0
 public void ResponseReceive(Func <string, IResponseData> ReceiveCallback)
 {
     try
     {
         var receiveStr = ResponseSocket.ReceiveFrameBytesSTR();
         LogWrite.Error("[收消息]收到客户端消息:" + receiveStr);
         var responseInfo = ReceiveCallback(receiveStr);
         ResponseSocket.TrySendFrameBytes(responseInfo);
     }
     catch (Exception e)
     {
         LogWrite.Error(e);
     }
 }