コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: StringEnumUtils.cs プロジェクト: pengyancai/cs-util
 public bool Equals(IStringEnum other)
 {
     return Equals(other.Value);
 }