public EndPoint.SubscribeOperation <T> Subscribe <T>() { EndPoint.SubscribeOperation <T> subscribeOperation = new EndPoint.SubscribeOperation <T>(pubnubConfig, jsonPluggableLibrary, pubnubUnitTest, pubnubLog, null, this); subscribeOperation.CurrentPubnubInstance(this); savedSubscribeOperation = subscribeOperation; return(subscribeOperation); }
public void Disconnect <T>() { if (savedSubscribeOperation != null && savedSubscribeOperation is EndPoint.SubscribeOperation <T> ) { EndPoint.SubscribeOperation <T> subscibeOperationInstance = savedSubscribeOperation as EndPoint.SubscribeOperation <T>; if (subscibeOperationInstance != null) { subscibeOperationInstance.Retry(false); } } }
public bool Disconnect <T>() { bool ret = false; if (savedSubscribeOperation != null && savedSubscribeOperation is EndPoint.SubscribeOperation <T> ) { EndPoint.SubscribeOperation <T> subscibeOperationInstance = savedSubscribeOperation as EndPoint.SubscribeOperation <T>; if (subscibeOperationInstance != null) { ret = subscibeOperationInstance.Retry(false); } } return(ret); }
public bool Reconnect <T>(bool resetSubscribeTimetoken) { bool ret = false; if (savedSubscribeOperation != null && savedSubscribeOperation is EndPoint.SubscribeOperation <T> ) { EndPoint.SubscribeOperation <T> subscibeOperationInstance = savedSubscribeOperation as EndPoint.SubscribeOperation <T>; if (subscibeOperationInstance != null) { ret = subscibeOperationInstance.Retry(true, resetSubscribeTimetoken); } } return(ret); }
public EndPoint.SubscribeOperation <T> Subscribe <T>() { EndPoint.SubscribeOperation <T> subscribeOperation = new EndPoint.SubscribeOperation <T>(pubnubConfig, jsonPluggableLibrary, pubnubUnitTest); savedSubscribeOperation = subscribeOperation; return(subscribeOperation); }