/// <summary> /// Called when the KCD connection status has changed. The default /// behavior is to fail on disconnection. /// </summary> public virtual void HandleKcdConn(KcdConnStatus status, Exception ex) { if (status == KcdConnStatus.Disconnecting || status == KcdConnStatus.Disconnected) { if (ex == null) ex = new EAnpExInterrupted(); HandleFailure(ex); } }
/// <summary> /// Called when the KCD connection status has changed. The default /// behavior is to fail on disconnection. /// </summary> public virtual void HandleKcdConn(KcdConnStatus status, Exception ex) { if (status == KcdConnStatus.Disconnecting || status == KcdConnStatus.Disconnected) { if (ex == null) { ex = new EAnpExInterrupted(); } HandleFailure(ex); } }
/// <summary> /// Called when the KCD connection status has changed. This method is /// only called by the WM state machine. /// </summary> public void HandleKcdConnStatusChange(KcdConnStatus status, Exception ex) { // Update our login state. if (status == KcdConnStatus.Disconnecting || status == KcdConnStatus.Disconnected) { UpdateStateOnLogout(ex); } // Notify the listeners. WmSm.QueueNotif(new KwsSmNotifKcdConn(m_kws, status, ex)); // Let the state machine sort it out. RequestRun("KCD connection status change"); }
public override void HandleKcdConn(KcdConnStatus status, Exception ex) { // Something went wrong. if (ex != null) { HandleFailure(ex); } // Check if we're now connected as we wanted to. else { UpdateDeleteRemotelyStepIfNeeded(); } }
public override void HandleKcdConn(KcdConnStatus status, Exception ex) { // Something went wrong. if (ex != null) { HandleFailure(ex); } else if ((status == KcdConnStatus.Disconnected || status == KcdConnStatus.Disconnecting) && m_step >= OpStep.CreateReply) { HandleFailure(new EAnpExInterrupted()); } // Send the creation command if needed. else { SendCreateKwsCmdIfNeeded(); } }
public override void HandleKcdConn(KcdConnStatus status, Exception ex) { // Something went wrong. if (ex != null) HandleFailure(ex); // Check if we're now connected as we wanted to. else UpdateDeleteRemotelyStepIfNeeded(); }
public override void HandleKcdConn(KcdConnStatus status, Exception ex) { // Something went wrong. if (ex != null) HandleFailure(ex); else if ((status == KcdConnStatus.Disconnected || status == KcdConnStatus.Disconnecting) && m_step >= OpStep.CreateReply) HandleFailure(new EAnpExInterrupted()); // Send the creation command if needed. else SendCreateKwsCmdIfNeeded(); }
/// <summary> /// Called when the KCD connection status has changed. This method is /// only called by the WM state machine. /// </summary> public void HandleKcdConnStatusChange(KcdConnStatus status, Exception ex) { // Update our login state. if (status == KcdConnStatus.Disconnecting || status == KcdConnStatus.Disconnected) UpdateStateOnLogout(ex); // Notify the listeners. WmSm.QueueNotif(new KwsSmNotifKcdConn(m_kws, status, ex)); // Let the state machine sort it out. RequestRun("KCD connection status change"); }
public KwsSmNotifKcdConn(Workspace kws, KcdConnStatus status, Exception ex) : base(kws) { Status = status; Ex = ex; }