Esempio n. 1
0
        public void EnqueueEvent(IEventData eventData)
        {
            if (eventData != null)
            {
                _eventQueue.Enqueue(eventData);

                EventEnqueued?.Invoke(eventData);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 3
0
        public void EnqueueEvents(IEnumerable <IEventData> eventDatas)
        {
            foreach (IEventData eventData in eventDatas)
            {
                if (eventData != null)
                {
                    _eventQueue.Enqueue(eventData);

                    EventEnqueued?.Invoke(eventData);
                }
            }
        }