예제 #1
0
파일: KwsCoreData.cs 프로젝트: tmbx/kwm-ng
 /// <summary>
 /// Reset some fields when the workspace logs out.
 /// </summary>
 public void ResetOnLogout()
 {
     LoginStatus          = KwsLoginStatus.LoggedOut;
     LoginLatestEventId   = 0;
     PwdPresentFlag       = false;
     PwdRequiredFlag      = false;
     KcdEventUpToDateFlag = false;
 }
예제 #2
0
파일: KwsCoreOp.cs 프로젝트: tmbx/kwm-ng
 /// <summary>
 /// Called when the workspace login status has changed. The default
 /// behavior is to fail on log out.
 /// </summary>
 public virtual void HandleKwsLogin(KwsLoginStatus status, Exception ex)
 {
     if (status == KwsLoginStatus.LoggingOut || status == KwsLoginStatus.LoggedOut)
     {
         if (ex == null) ex = new EAnpExInterrupted();
         HandleFailure(ex);
     }
 }
예제 #3
0
파일: KwsCoreOp.cs 프로젝트: tmbx/kwm-ng
 /// <summary>
 /// Called when the workspace login status has changed. The default
 /// behavior is to fail on log out.
 /// </summary>
 public virtual void HandleKwsLogin(KwsLoginStatus status, Exception ex)
 {
     if (status == KwsLoginStatus.LoggingOut || status == KwsLoginStatus.LoggedOut)
     {
         if (ex == null)
         {
             ex = new EAnpExInterrupted();
         }
         HandleFailure(ex);
     }
 }
예제 #4
0
파일: KwsCoreOp.cs 프로젝트: tmbx/kwm-ng
        public override void HandleKwsLogin(KwsLoginStatus status, Exception ex)
        {
            // Something went wrong.
            if (ex != null)
            {
                HandleFailure(ex);
            }

            // Complete the operation if needed.
            else
            {
                CompleteIfNeeded();
            }
        }
예제 #5
0
파일: KwsCoreOp.cs 프로젝트: tmbx/kwm-ng
        public override void HandleKwsLogin(KwsLoginStatus status, Exception ex)
        {
            // Success.
            if (status == KwsLoginStatus.LoggedIn)
            {
                Complete();
            }

            // Interrupted.
            else if (status == KwsLoginStatus.LoggingOut || status == KwsLoginStatus.LoggedOut)
            {
                HandleFailure(new EAnpExInterrupted());
            }
        }
예제 #6
0
파일: KwsCoreOp.cs 프로젝트: tmbx/kwm-ng
        public override void HandleKwsLogin(KwsLoginStatus status, Exception ex)
        {
            // The workspace has been deleted remotely.
            if (Kws.Cd.KcdState.LoginResult == KwsLoginResult.DeletedKws)
            {
                Complete();
            }

            // Something went wrong.
            else if (ex != null)
            {
                HandleFailure(ex);
            }
            else if (status == KwsLoginStatus.LoggedIn)
            {
                HandleFailure(new EAnpExInterrupted());
            }

            // Check if we're now logged out as we wanted to.
            else
            {
                UpdateDeleteRemotelyStepIfNeeded();
            }
        }
예제 #7
0
파일: KwsCoreOp.cs 프로젝트: tmbx/kwm-ng
        public override void HandleKwsLogin(KwsLoginStatus status, Exception ex)
        {
            // Success.
            if (status == KwsLoginStatus.LoggedIn)
                Complete();

            // Interrupted.
            else if (status == KwsLoginStatus.LoggingOut || status == KwsLoginStatus.LoggedOut)
                HandleFailure(new EAnpExInterrupted());
        }
예제 #8
0
파일: KwsCoreOp.cs 프로젝트: tmbx/kwm-ng
        public override void HandleKwsLogin(KwsLoginStatus status, Exception ex)
        {
            // The workspace has been deleted remotely.
            if (Kws.Cd.KcdState.LoginResult == KwsLoginResult.DeletedKws) Complete();

            // Something went wrong.
            else if (ex != null) HandleFailure(ex);
            else if (status == KwsLoginStatus.LoggedIn) HandleFailure(new EAnpExInterrupted());

            // Check if we're now logged out as we wanted to.
            else UpdateDeleteRemotelyStepIfNeeded();
        }
예제 #9
0
파일: KwsCoreOp.cs 프로젝트: tmbx/kwm-ng
        public override void HandleKwsLogin(KwsLoginStatus status, Exception ex)
        {
            // Something went wrong.
            if (ex != null) HandleFailure(ex);

            // Complete the operation if needed.
            else CompleteIfNeeded();
        }
예제 #10
0
파일: KwsCoreData.cs 프로젝트: tmbx/kwm-ng
 public KwsSmNotifKcdLogin(Workspace kws, KwsLoginStatus status, Exception ex)
     : base(kws)
 {
     Status = status;
     Ex     = ex;
 }
예제 #11
0
파일: KwsCoreData.cs 프로젝트: tmbx/kwm-ng
 public KwsSmNotifKcdLogin(Workspace kws, KwsLoginStatus status, Exception ex)
     : base(kws)
 {
     Status = status;
     Ex = ex;
 }
예제 #12
0
파일: KwsCoreData.cs 프로젝트: tmbx/kwm-ng
 /// <summary>
 /// Reset some fields when the workspace logs out.
 /// </summary>
 public void ResetOnLogout()
 {
     LoginStatus = KwsLoginStatus.LoggedOut;
     LoginLatestEventId = 0;
     PwdPresentFlag = false;
     PwdRequiredFlag = false;
     KcdEventUpToDateFlag = false;
 }