Example #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);
     }
 }
Example #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);
     }
 }
Example #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");
        }
Example #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();
            }
        }
Example #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();
            }
        }
Example #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();
        }
Example #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();
        }
Example #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");
        }
Example #9
0
 public KwsSmNotifKcdConn(Workspace kws, KcdConnStatus status, Exception ex)
     : base(kws)
 {
     Status = status;
     Ex     = ex;
 }
Example #10
0
 public KwsSmNotifKcdConn(Workspace kws, KcdConnStatus status, Exception ex)
     : base(kws)
 {
     Status = status;
     Ex = ex;
 }