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()); }
void HandleLogin(AccessInfo info) { _loginHandler.HandleLogin(info).Wait(); }
public override bool Login() { return(_loginHandler.HandleLogin()); }