protected override void InternalBeginProcessing() { TaskLogger.LogEnter(); base.InternalBeginProcessing(); if (base.Fields.IsModified(DynamicDistributionGroupSchema.RecipientFilter)) { DynamicDistributionGroup adObject = (DynamicDistributionGroup)this.GetDynamicParameters(); if (RecipientFilterHelper.IsRecipientFilterPropertiesModified(adObject, false)) { base.ThrowTerminatingError(new TaskArgumentException(Strings.ErrorBothCustomAndPrecannedFilterSpecified, null), ExchangeErrorCategory.Client, null); } } if (base.Fields.IsModified("ExpansionServer")) { if (string.IsNullOrEmpty(this.ExpansionServer)) { this.ExpansionServer = string.Empty; this.homeMTA = null; } else { Server server = SetDynamicDistributionGroup.ResolveExpansionServer(this.ExpansionServer, base.GlobalConfigSession, new DataAccessHelper.CategorizedGetDataObjectDelegate(base.GetDataObject <Server>), new Task.ErrorLoggerDelegate(base.ThrowTerminatingError)); base.ValidateExpansionServer(server, true); this.ExpansionServer = server.ExchangeLegacyDN; this.homeMTA = server.ResponsibleMTA; } } TaskLogger.LogExit(); }
protected override void InternalBeginProcessing() { TaskLogger.LogEnter(); base.InternalBeginProcessing(); if (base.Fields.IsModified("ExpansionServer")) { if (string.IsNullOrEmpty(this.ExpansionServer)) { this.ExpansionServer = string.Empty; this.homeMTA = null; } else { Server server = SetDynamicDistributionGroup.ResolveExpansionServer(this.ExpansionServer, base.GlobalConfigSession, new DataAccessHelper.CategorizedGetDataObjectDelegate(base.GetDataObject <Server>), new Task.ErrorLoggerDelegate(base.ThrowTerminatingError)); base.ValidateExpansionServer(server, true); this.ExpansionServer = server.ExchangeLegacyDN; this.homeMTA = server.ResponsibleMTA; } } TaskLogger.LogExit(); }