Exemple #1
0
 /// <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);
     }
 }
Exemple #2
0
 /// <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);
     }
 }
Exemple #3
0
        /// <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");
        }
Exemple #4
0
        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();
            }
        }
Exemple #5
0
        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();
            }
        }
Exemple #6
0
        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();
        }
Exemple #7
0
        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();
        }
Exemple #8
0
        /// <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");
        }
Exemple #9
0
 public KwsSmNotifKcdConn(Workspace kws, KcdConnStatus status, Exception ex)
     : base(kws)
 {
     Status = status;
     Ex     = ex;
 }
Exemple #10
0
 public KwsSmNotifKcdConn(Workspace kws, KcdConnStatus status, Exception ex)
     : base(kws)
 {
     Status = status;
     Ex = ex;
 }