Exemple #1
0
 //取消订阅函数,目前仅wsq支持订阅
 public void cancelRequest(ulong requestID)
 {
     if (requestID == 0)
     {
         foreach (ulong rid in ReqList.Keys)
         {
             wdc.cancelRequest(rid);
         }
         ReqList.Clear();
     }
     if (ReqList.ContainsKey(requestID))
     {
         wdc.cancelRequest(requestID);
         ReqList.Remove(requestID);
     }
     return;
 }