예제 #1
0
 protected override void InternalValidate()
 {
     TaskLogger.LogEnter();
     base.InternalValidate();
     if (NewIntraOrganizationConnector.DomainExists(this.DataObject.TargetAddressDomains, this.ConfigurationSession))
     {
         base.WriteError(new DuplicateIntraOrganizationConnectorDomainException(base.FormatMultiValuedProperty(this.DataObject.TargetAddressDomains)), ErrorCategory.InvalidOperation, base.Name);
     }
     TaskLogger.LogExit();
 }
예제 #2
0
 protected override void InternalValidate()
 {
     TaskLogger.LogEnter();
     base.InternalValidate();
     foreach (ADPropertyDefinition adpropertyDefinition in SetIntraOrganizationConnector.setProperties)
     {
         if (base.Fields.IsModified(adpropertyDefinition))
         {
             this.DataObject[adpropertyDefinition] = base.Fields[adpropertyDefinition];
         }
     }
     if (NewIntraOrganizationConnector.DomainExists(this.DataObject.TargetAddressDomains, this.ConfigurationSession, new Guid?(this.DataObject.Guid)))
     {
         base.WriteError(new DuplicateIntraOrganizationConnectorDomainException(base.FormatMultiValuedProperty(this.DataObject.TargetAddressDomains)), ErrorCategory.InvalidOperation, this.Identity);
     }
     TaskLogger.LogExit();
 }
예제 #3
0
 internal static bool DomainExists(MultiValuedProperty <SmtpDomain> domains, IConfigurationSession configurationSession)
 {
     return(NewIntraOrganizationConnector.DomainExists(domains, configurationSession, null));
 }