예제 #1
0
        public Task LoginPassword(string userName, string password)
        {
            Exceptions.ThrowIfNullOrWhiteSpace(userName, "userName");
            Exceptions.ThrowIfNullOrWhiteSpace(password, "password");

            var passwordParameter = Utilities.GetPassword(password);
            var userParameter = new UserLogin(userName);

            var loginParameters = new LoginPasswordParameters(userParameter, passwordParameter);

            return this.CallLoginMethod("login", loginParameters);
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoginPasswordParameters"/> class.
 /// </summary>
 /// <param name="user">
 /// The user.
 /// </param>
 /// <param name="password">
 /// The password.
 /// </param>
 public LoginPasswordParameters(UserLogin user, Password password)
 {
     this.User = user;
     this.Password = password;
 }