예제 #1
0
 private SessionManager()
 {
     IsFaked       = false;
     IsPassed      = true;
     SessionWorker = SessionWorker.Create();
     Error         = new SessionErrorHandle();
 }
예제 #2
0
        public void ValidateSession()
        {
            if (Session == null)
            {
                throw new ArgumentNullException("Session");
            }

            IsPassed = SessionWorker.FindExists(Session);
            if (!IsPassed)
            {
                Error.ErrorCode = ErrorMapping.SESSION_0001;
            }
            if (IsFaked)
            {
                Error.ErrorCode = ErrorMapping.SESSION_0002;
            }
        }