Example #1
0
 /// <summary>
 /// Construct an <see cref="Client"/> for a remote connection
 /// </summary>
 /// <param name="loginInfo">The <see cref="RemoteLoginInfo"/> for a remote connection</param>
 public Client(RemoteLoginInfo loginInfo) : this()
 {
     if (!loginInfo.HasPassword)
     {
         throw new InvalidOperationException("password must be set on loginInfo!");
     }
     _loginInfo = loginInfo;
 }
 /// <summary>
 /// Construct a <see cref="AuthenticationHeaderApplicator"/>
 /// </summary>
 /// <param name="loginInfo">The <see cref="RemoteLoginInfo"/> to use</param>
 public AuthenticationHeaderApplicator(RemoteLoginInfo loginInfo)
 {
     remoteLoginInfo = loginInfo;
 }