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); }); }
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) { } } }
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(); } }
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"); }
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"); }
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; } }
public virtual void OnFailure(PushServerException e) { }
public virtual void OnDataError(PushServerException e) { }
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(); } }
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); }); }
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(); }