Exemple #1
0
        public static SmtpReceiveDomainCapabilities TlsDomainCapabilities(int instance)
        {
            string defaultValue = "AcceptCloudServicesMail";
            string arg          = Configuration.FopeCertificateDomain(instance);
            string value        = Configuration.GetValue <string>("FopeCertificatePermissions", defaultValue);

            return(SmtpReceiveDomainCapabilities.Parse(string.Format("{0}:{1}", arg, value)));
        }
Exemple #2
0
        public static SmtpX509Identifier GetSmtpX509Identifier(MultiValuedProperty <SmtpReceiveDomainCapabilities> tlsDomainCapabilities)
        {
            SmtpReceiveDomainCapabilities smtpReceiveDomainCapabilities = (from d in tlsDomainCapabilities
                                                                           where d.SmtpX509Identifier != null
                                                                           select d).FirstOrDefault <SmtpReceiveDomainCapabilities>();

            if (smtpReceiveDomainCapabilities != null)
            {
                return(new SmtpX509Identifier(smtpReceiveDomainCapabilities.ToString()));
            }
            return(null);
        }
Exemple #3
0
 public IReceiveConnector BuildExpectedReceiveConnector(ADObjectId server, SmtpX509Identifier tlsCertificateName, SmtpReceiveDomainCapabilities tlsDomainCapabilities)
 {
     return(new Microsoft.Exchange.Management.Hybrid.Entity.ReceiveConnector
     {
         Server = server,
         TlsCertificateName = tlsCertificateName,
         TlsDomainCapabilities = tlsDomainCapabilities
     });
 }
 public void UpdateFrom(IReceiveConnector obj)
 {
     this.Server                = obj.Server;
     this.TlsCertificateName    = obj.TlsCertificateName;
     this.TlsDomainCapabilities = obj.TlsDomainCapabilities;
 }
 private static bool AreEqual(SmtpReceiveDomainCapabilities a, SmtpReceiveDomainCapabilities b)
 {
     return(a == b || (a != null && b != null && a.Equals(b)));
 }