Ejemplo n.º 1
0
        // TODO: not currently called.
        internal void FireQueuedEvents()
        {
            // IsLoadingEntity will still be true when this occurs.
            if (!QueuedEvents.Any())
            {
                return;
            }
            var events = QueuedEvents;

            _queuedEvents = new List <Action>();
            events.ForEach(a => a());

            // in case any of the previously queued events spawned other events.
            FireQueuedEvents();
        }