public bool AddListener(SubscribeCallback listener) { if (listenerManager == null) { listenerManager = new EndPoint.ListenerManager(pubnubConfig, jsonPluggableLibrary, pubnubUnitTest, pubnubLog, null, this); } return(listenerManager.AddListener(listener)); }
public void AddListener(SubscribeCallback listener) { if (listenerManager == null) { listenerManager = new EndPoint.ListenerManager(pubnubConfig, jsonPluggableLibrary, pubnubUnitTest, pubnubLog); listenerManager.CurrentPubnubInstance(this); } listenerManager.AddListener(listener); }
public void RemoveListener(SubscribeCallback listener) { EndPoint.ListenerManager listenerManager = new EndPoint.ListenerManager(pubnubConfig, jsonPluggableLibrary, pubnubUnitTest); listenerManager.CurrentPubnubInstance(this); listenerManager.RemoveListener(listener); }