public static NetworkCredential LookupCredential(this ICredentialsByHost credentials, ConnectionBase connection, string username, IStringEnum authenticationMechanism) { if (connection == null) throw new ArgumentNullException("connection"); return LookupCredential(credentials, connection.Host, connection.Port, username, authenticationMechanism == null ? null : authenticationMechanism.Value); }
public bool Equals(IStringEnum other) { return Equals(other.Value); }