Exemplo n.º 1
0
 public static BaseEvent GetCache(string type, object eventObj = null)
 {
     if (_pool.Count > 0)
     {
         BaseEvent evt = _pool.Dequeue();
         evt.Reset(type, eventObj);
         return(evt);
     }
     return(new BaseEvent(type, eventObj));
 }