예제 #1
0
 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);
 }
예제 #2
0
파일: Pubnub.cs 프로젝트: johncrn/c-sharp
 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);
         }
     }
 }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
파일: Pubnub.cs 프로젝트: johncrn/c-sharp
 public EndPoint.SubscribeOperation <T> Subscribe <T>()
 {
     EndPoint.SubscribeOperation <T> subscribeOperation = new EndPoint.SubscribeOperation <T>(pubnubConfig, jsonPluggableLibrary, pubnubUnitTest);
     savedSubscribeOperation = subscribeOperation;
     return(subscribeOperation);
 }