Inheritance: Lightstreamer.DotNet.Client.ClientException
 public void OnFailure(PushServerException e)
 {
     this.queue.Add(delegate {
         this.target.OnFailure(e);
     });
     this.streamingTested.Set();
 }
 public void OnConnectTimeout(PushServerException e)
 {
     this.streamingAppended = true;
     this.streamingTested.Set();
     this.queue.Add(delegate {
         this.target.OnFailure(e);
     });
 }
Example #3
0
                public void Run()
                {
                    PushServerException e = new PushServerException(11);

                    this.enclosingInstance.enclosingInstance.serverListener.OnFailure(e);
                    ServerManager.sessionLogger.Info("Terminating session " + this.enclosingInstance.enclosingInstance.localPushServerProxy.SessionId + " because of a reconnection timeout");
                    this.enclosingInstance.enclosingInstance.localPushServerProxy.Dispose();
                }
            public virtual void OnFailure(PushServerException e)
            {
                IConnectionListener activeListener = this.enclosingInstance.GetActiveListener(this.currPhase);

                if (activeListener != null)
                {
                    try
                    {
                        activeListener.OnFailure(e);
                    }
                    catch (Exception)
                    {
                    }
                }
            }
Example #5
0
 public override void Run()
 {
     try
     {
         this.enclosingInstance.WaitEvents();
     }
     catch (Exception exception)
     {
         PushServerException e = new PushServerException(12, exception);
         ServerManager.protLogger.Debug("Error in received data", exception);
         ServerManager.sessionLogger.Error("Unrecoverable error while listening to data in session " + this.enclosingInstance.localPushServerProxy.SessionId);
         this.enclosingInstance.serverListener.OnFailure(e);
     }
     finally
     {
         this.enclosingInstance.serverListener.OnClose();
     }
 }
Example #6
0
 private void OnNoActivity()
 {
     ServerManager.notificationsSender.Add(delegate {
         PushServerException exc = new PushServerException(10);
         if (this.enclosingInstance.serverListener.OnFailure(exc))
         {
             ServerManager.sessionLogger.Info("Terminating session " + this.enclosingInstance.localPushServerProxy.SessionId + " because of an activity timeout");
             this.enclosingInstance.localPushServerProxy.Dispose(true);
         }
     });
 }
 public void OnFailure(PushServerException e)
 {
     this.onDisconnection("Server failure: " + e.Message);
 }
 public void OnDataError(PushServerException e)
 {
     this.page.StatusChanged(this.phase, "Data error: " + e.Message, null);
 }
 public void OnFailure(PushServerException e) {
     this.onDisconnection("Server failure");
 }
Example #10
0
 public virtual void OnFailure(PushServerException e)
 {
     IConnectionListener activeListener = this.enclosingInstance.GetActiveListener(this.currPhase);
     if (activeListener != null)
     {
         try
         {
             activeListener.OnFailure(e);
         }
         catch (Exception)
         {
         }
     }
 }
 public void OnDataError(PushServerException e)
 {
     listener.OnStatusChange(phase, LightstreamerConnectionHandler.ERROR, "Data error");
 }
Example #12
0
 public virtual bool OnReconnectTimeout()
 {
     IConnectionListener activeListener = this.owner.GetActiveListener(this.currPhase);
     lock (this)
     {
         if ((activeListener != null) && !this.failed)
         {
             NotificationQueue.Notify fun = null;
             NotificationQueue.Notify notify2 = null;
             this.failed = true;
             PushServerException exc = new PushServerException(11);
             if (activeListener is ExtConnectionListener)
             {
                 if (fun == null)
                 {
                     fun = delegate {
                         ((ExtConnectionListener) activeListener).OnConnectTimeout(exc);
                     };
                 }
                 this.queue.Add(fun);
             }
             else
             {
                 if (notify2 == null)
                 {
                     notify2 = delegate {
                         activeListener.OnFailure(exc);
                     };
                 }
                 this.queue.Add(notify2);
             }
             return true;
         }
         return false;
     }
 }
Example #13
0
        public virtual void OnFailure(PushServerException e)
        {

        }
Example #14
0
        public virtual void OnDataError(PushServerException e)
        {

        }
Example #15
0
 public override void Run()
 {
     try
     {
         this.enclosingInstance.WaitEvents();
     }
     catch (Exception e)
     {
         PushServerException exc = new PushServerException(12, e);
         ServerManager.protLogger.Debug("Error in received data", e);
         ServerManager.sessionLogger.Error("Unrecoverable error while listening to data in session " + this.enclosingInstance.localPushServerProxy.SessionId);
         this.enclosingInstance.serverListener.OnFailure(exc);
     }
     finally
     {
         this.enclosingInstance.serverListener.OnClose();
     }
 }
Example #16
0
 public virtual bool OnFailure(PushServerException e)
 {
     NotificationQueue.Notify fun = null;
     IConnectionListener activeListener = this.owner.GetActiveListener(this.currPhase);
     lock (this)
     {
         if ((activeListener != null) && !this.failed)
         {
             this.failed = true;
             if (fun == null)
             {
                 fun = delegate {
                     activeListener.OnFailure(e);
                 };
             }
             this.queue.Add(fun);
             return true;
         }
         return false;
     }
 }
 public void OnDataError(PushServerException e)
 {
     this.queue.Add(delegate {
         this.target.OnDataError(e);
     });
 }
Example #18
0
 public virtual void OnConnectTimeout()
 {
     if (this.initialListener is ExtConnectionListener)
     {
         PushServerException exc = new PushServerException(11);
         this.queue.Add(delegate {
             ((ExtConnectionListener) this.initialListener).OnConnectTimeout(exc);
         });
     }
 }
 public void OnDataError(PushServerException e) {
     this.slClient.StatusChanged(this.phase, VOID, "Data error");
 }
 public void OnFailure(PushServerException e)
 {
     listener.OnStatusChange(phase, LightstreamerConnectionHandler.DISCONNECTED, "Server failure" + e);
     reconnect = true;
 }
 public void Run()
 {
     PushServerException e = new PushServerException(11);
     this.enclosingInstance.enclosingInstance.serverListener.OnFailure(e);
     ServerManager.sessionLogger.Info("Terminating session " + this.enclosingInstance.enclosingInstance.localPushServerProxy.SessionId + " because of a reconnection timeout");
     this.enclosingInstance.enclosingInstance.localPushServerProxy.Dispose();
 }