Ejemplo n.º 1
0
        void postStickyAfterRegistation(MessageBusEventHandler EventHandler)
        {
            MessageBusEvent eventToBePosted = null;

            lock (mStickyEvents)
            {
                if (mStickyEvents.ContainsKey(EventHandler.EventId))
                {
                    // consider using this:
                    // Execute(EventHandler.EventAction, this, mStickyEvents[EventHandler.EventId]);

                    eventToBePosted = mStickyEvents[EventHandler.EventId];
                }
            }

            if (eventToBePosted != null)
            {
                EventHandler.EventAction(this, eventToBePosted);
            }
        }