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