public DispatcherListener On(string eventName, Callback callback, Hashtable payload) { eventName = eventName.ToLower(); if (!this.callbackCatagories.ContainsKey(eventName)) { this.callbackCatagories[eventName] = new List<DispatcherListener>(); } DispatcherListener dispatcherListener = new DispatcherListener(callback, payload); this.callbackCatagories[eventName].Add(dispatcherListener); return dispatcherListener; }
public MetaObject() { dispatcherListener = Broadcaster.On("all", this.Trigger); }