コード例 #1
0
        public static MessengerEventBatch Begin()
        {
            if (_current != null)
            {
                LogHelper.Error("MessengerBatch has Began");
                return(null);
            }

            _current = new MessengerEventBatch();
            return(_current);
        }
コード例 #2
0
        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);
        }