示例#1
0
        public void EnqueueEvent(IEventData eventData)
        {
            if (eventData != null)
            {
                _eventQueue.Enqueue(eventData);

                EventEnqueued?.Invoke(eventData);
            }
        }
示例#2
0
        public void AddEvent(IUXEvent uxEvent)
        {
            if (uxEvent != null)
            {
                // Add event to our pending queue
                _pendingEvents.Add(uxEvent);

                // Fire off our own event
                EventEnqueued?.Invoke(uxEvent);
            }
        }
示例#3
0
        public void EnqueueEvents(IEnumerable <IEventData> eventDatas)
        {
            foreach (IEventData eventData in eventDatas)
            {
                if (eventData != null)
                {
                    _eventQueue.Enqueue(eventData);

                    EventEnqueued?.Invoke(eventData);
                }
            }
        }