internal virtual Lightstreamer.DotNet.Client.ServerUpdateEvent WaitUpdate(ServerManager.ActivityController activityController)
 {
     while (true)
     {
         this.Check();
         string pushData = this.WaitCommand(activityController);
         if (pushData != null)
         {
             Lightstreamer.DotNet.Client.ServerUpdateEvent event2;
             try
             {
                 event2 = this.serverTranslator.ParsePushData(pushData);
             }
             catch (PushServerException exception)
             {
                 throw exception;
             }
             catch (Exception exception2)
             {
                 throw new PushServerException(12, exception2);
             }
             lock (this)
             {
                 this.totalBytes += pushData.Length + 2;
             }
             this.Check();
             return(event2);
         }
     }
 }
        private string WaitCommand(ServerManager.ActivityController activityController)
        {
            string str2;

            try
            {
                string str = this.serverTranslator.WaitCommand(this.pushStream);
                activityController.OnActivity();
                str2 = str;
            }
            catch (PushLengthException exception)
            {
                this.Check();
                activityController.StopKeepalives();
                throw exception;
            }
            catch (IOException exception2)
            {
                this.Check();
                throw new PushConnException(exception2);
            }
            return(str2);
        }
Ejemplo n.º 3
0
 public AnonymousClassTimerTask(int currPhase, ServerManager.ActivityController enclosingInstance)
 {
     this.currPhase = currPhase;
     this.enclosingInstance = enclosingInstance;
 }
Ejemplo n.º 4
0
 public AnonymousClassTimerTask3(bool warningOn, ServerManager.ActivityController enclosingInstance)
 {
     this.warningOn         = warningOn;
     this.enclosingInstance = enclosingInstance;
 }
Ejemplo n.º 5
0
 public AnonymousClassTimerTask2(ServerManager.ActivityController enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Ejemplo n.º 6
0
 public AnonymousClassTimerTask(int currPhase, ServerManager.ActivityController enclosingInstance)
 {
     this.currPhase         = currPhase;
     this.enclosingInstance = enclosingInstance;
 }
 public AnonymousClassTimerTask3(bool warningOn, ServerManager.ActivityController enclosingInstance)
 {
     this.warningOn = warningOn;
     this.enclosingInstance = enclosingInstance;
 }
 public AnonymousClassTimerTask2(ServerManager.ActivityController enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }