Ejemplo n.º 1
0
 public static void InsertDomain(this MultiValuedProperty <SmtpDomainWithSubdomains> domainsList, string domainName)
 {
     if (domainsList != null && !string.IsNullOrEmpty(domainName))
     {
         SmtpDomainWithSubdomains domain = new SmtpDomainWithSubdomains(domainName);
         domainsList.InsertDomain(domain);
     }
 }
Ejemplo n.º 2
0
 public static void InsertDomainRange(this MultiValuedProperty <SmtpDomainWithSubdomains> domainsList, MultiValuedProperty <SmtpDomainWithSubdomains> domains)
 {
     if (domainsList != null && domains != null)
     {
         foreach (SmtpDomainWithSubdomains domain in domains)
         {
             domainsList.InsertDomain(domain);
         }
     }
 }
Ejemplo n.º 3
0
        public static MultiValuedProperty <SmtpDomainWithSubdomains> AddPrefixForEachDomain(this MultiValuedProperty <SmtpDomainWithSubdomains> domainsList, string prefix)
        {
            MultiValuedProperty <SmtpDomainWithSubdomains> multiValuedProperty = new MultiValuedProperty <SmtpDomainWithSubdomains>();

            if (domainsList != null)
            {
                foreach (SmtpDomainWithSubdomains smtpDomainWithSubdomains in domainsList)
                {
                    string s = prefix + smtpDomainWithSubdomains.SmtpDomain.Domain;
                    multiValuedProperty.InsertDomain(new SmtpDomainWithSubdomains(s, smtpDomainWithSubdomains.IncludeSubDomains));
                }
            }
            return(multiValuedProperty);
        }