public void PostImmediately(Notification notification) { string name = notification.Name; NotificationDelegateList list = FindList(name); if (list != null) { list.NotifyDelegates(notification); } notification.Recycle(); }
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(); } }