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);
        }
Ejemplo n.º 2
0
 public bool Equals(IStringEnum other)
 {
     return Equals(other.Value);
 }