예제 #1
0
        public string Login(string loginName, string password)
        {
            Guid token;

            try
            {
                token = _loginHandler.HandleLogin(loginName, password);
            }
            catch (WrongPasswordException e)
            {
                throw new FaultException(new FaultReason("Wrong login or password") + e.Message);
            }
            catch (Exception e)
            {
                throw new FaultException(new FaultReason("Error during login") + e.Message + e.InnerException + e.StackTrace + e.Data);
            }

            return(token.ToString());
        }
예제 #2
0
 void HandleLogin(AccessInfo info)
 {
     _loginHandler.HandleLogin(info).Wait();
 }
예제 #3
0
 public override bool Login()
 {
     return(_loginHandler.HandleLogin());
 }