Example #1
0
 protected void AddNetworkEvt(HjNetworkEvt evt)
 {
     lock (mNetworkEvtLock)
     {
         mNetworkEvtList.Add(evt);
     }
 }
Example #2
0
 protected void AddNetworkEvt(HjNetworkEvt evt)
 {
     lock (mNetworkEvtLock)
     {
         //Logger.Log("result : "+evt.result + " msg : "+evt.msg);
         mNetworkEvtList.Add(evt);
     }
 }
Example #3
0
 private void UpdateEvt()
 {
     lock (mNetworkEvtLock)
     {
         try
         {
             for (int i = 0; i < mNetworkEvtList.Count; ++i)
             {
                 HjNetworkEvt evt = mNetworkEvtList[i];
                 evt.evtHandle(evt.sender, evt.result, evt.msg);
             }
         }
         catch (Exception e)
         {
             Logger.LogError("Got the f*****g exception :" + e.Message);
         }
         finally
         {
             mNetworkEvtList.Clear();
         }
     }
 }