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