Ejemplo n.º 1
0
        protected override void InternalValidate()
        {
            if (Server.IsSubscribedGateway(base.GlobalConfigSession))
            {
                base.WriteError(new CannotRunOnSubscribedEdgeException(), ErrorCategory.InvalidOperation, null);
            }
            if (this.usageSetCount > 1)
            {
                base.WriteError(new NewSendConnectorIncorrectUsageParametersException(), ErrorCategory.InvalidOperation, null);
            }
            if (this.IsUsageSet && this.usage == NewSendConnector.UsageType.Partner)
            {
                if (!this.isDomainSecureEnabledSet)
                {
                    this.DataObject.DomainSecureEnabled = true;
                }
                if (!this.isDnsRoutingEnabledSet)
                {
                    this.DataObject.DNSRoutingEnabled = true;
                }
            }
            base.InternalValidate();
            if (base.HasErrors)
            {
                return;
            }
            bool flag;
            LocalizedException ex = NewSendConnector.CrossObjectValidate(this.DataObject, (IConfigurationSession)base.DataSession, this.localServer, this, out flag);

            if (ex != null)
            {
                base.WriteError(ex, ErrorCategory.InvalidOperation, this.DataObject);
                return;
            }
            if (flag)
            {
                this.WriteWarning(Strings.WarningMultiSiteSourceServers);
            }
        }
Ejemplo n.º 2
0
        protected override void InternalValidate()
        {
            base.InternalValidate();
            if (base.HasErrors)
            {
                return;
            }
            if (Server.IsSubscribedGateway((ITopologyConfigurationSession)base.DataSession))
            {
                base.WriteError(new CannotRunOnSubscribedEdgeException(), ErrorCategory.InvalidOperation, null);
            }
            bool flag;
            LocalizedException ex = NewSendConnector.CrossObjectValidate(this.DataObject, (IConfigurationSession)base.DataSession, this.localServer, this, out flag);

            if (ex != null)
            {
                base.WriteError(ex, ErrorCategory.InvalidOperation, this.DataObject);
                return;
            }
            if (flag)
            {
                this.WriteWarning(Strings.WarningMultiSiteSourceServers);
            }
        }