Exemplo n.º 1
0
        public static void Broadcast(string eventType, ListenerType mode)
        {
            ListenerInternal.OnBroadcasting(eventType, mode);
            Delegate d;

            if (eventTable.TryGetValue(eventType, out d))
            {
                Callback callback = d as Callback;
                if (callback != null)
                {
                    callback();
                }
                else
                {
                    throw ListenerInternal.CreateBroadcastSignatureException(eventType);
                }
            }
        }