Esempio n. 1
0
        public void PostImmediately(Notification notification)
        {
            string name = notification.Name;
            NotificationDelegateList list = FindList(name);

            if (list != null)
            {
                list.NotifyDelegates(notification);
            }
            notification.Recycle();
        }
Esempio n. 2
0
        public void PostImmediately(Object sender, string name, params object[] data)
        {
            NotificationDelegateList list = FindList(name);

            if (list != null && list.Count > 0)
            {
                Notification notification = m_notificatoinsPool.NextObject();
                notification.Init(sender, name, data);

                list.NotifyDelegates(notification);
                notification.Recycle();
            }
        }