public static Domain GetDomain(this DomainManagerClient client, MailAddress address) { if (address == null) { throw new ArgumentNullException("address"); } return(client.GetDomain(address.Host)); }
public static Domain GetDomain(this DomainManagerClient client, string domainName) { return(client.GetDomain(domainName, null)); }
public static bool DomainExists(this DomainManagerClient client, string domainName) { Domain domain = client.GetDomain(domainName); return(domain != null); }