static void AddToPool(AsyncMsgInfoBase eventInfo) { if (m_eventTypeList_Pool.ContainsKey(eventInfo.eventType) == false) { m_eventTypeList_Pool.Add(eventInfo.eventType, eventInfo); } }
static AsyncMsgInfoBase GetFromPool(string eventType) { if (m_eventTypeList_Pool.ContainsKey(eventType)) { AsyncMsgInfoBase obj = m_eventTypeList_Pool[eventType]; m_eventTypeList_Pool.Remove(eventType); return(obj); } else { return(null); } }
static void ReadyBroadcast(AsyncMsgInfoBase info, bool bAsync) { if (info != null) { if (bAsync) { m_eventTypeAsyncList.Add(info); } else { info.Excute(); RemoveMsgInfo(info); } } }
static void RemoveMsgInfo(AsyncMsgInfoBase eventInfo) { AddToPool(eventInfo); }