예제 #1
0
 public STSLoginMessageHandler(STSInfo info, string userName, string password, string domain = null)
     : this(info, new NetworkCredential(userName, password, domain))
 {
     this.userName = userName;
     this.password = password;
 }
예제 #2
0
 public STSLoginMessageHandler(STSInfo info, ICredentials credentials)
 {
     this.InnerHandler = this.InnerHandler ?? new HttpClientHandler();
     this.info         = info;
     this.credentials  = credentials ?? CredentialCache.DefaultCredentials;
 }