public static MessengerEventBatch Begin() { if (_current != null) { LogHelper.Error("MessengerBatch has Began"); return(null); } _current = new MessengerEventBatch(); return(_current); }
public MessengerEventBatch End() { if (_current != this) { LogHelper.Error("MessengerEventBatch End Without Begin"); return(this); } if (UnRegisterActionTempList.Count != 0) { _unRegisterActionAry = UnRegisterActionTempList.ToArray(); UnRegisterActionTempList.Clear(); } _current = null; return(this); }