Example #1
0
        // Token: 0x0600048E RID: 1166 RVA: 0x0001064C File Offset: 0x0000E84C
        protected override IConfigurable PrepareDataObject()
        {
            TaskLogger.LogEnter();
            TDataObject tdataObject = (TDataObject)((object)base.PrepareDataObject());

            if (tdataObject.ObjectCategory == null && this.ConfigurationSession.SchemaNamingContext != null)
            {
                tdataObject.ObjectCategory = this.ConfigurationSession.SchemaNamingContext.GetChildId(tdataObject.ObjectCategoryCN);
            }
            this.PrepareRecipientObject(tdataObject);
            RecipientTaskHelper.RemoveEmptyValueFromEmailAddresses(tdataObject);
            TaskLogger.LogExit();
            return(tdataObject);
        }
Example #2
0
        // Token: 0x060005BD RID: 1469 RVA: 0x000159B4 File Offset: 0x00013BB4
        protected override IConfigurable PrepareDataObject()
        {
            TaskLogger.LogEnter();
            ADRecipient adrecipient = (ADRecipient)base.PrepareDataObject();

            if (adrecipient.IsChanged(ADRecipientSchema.PrimarySmtpAddress) && adrecipient.PrimarySmtpAddress != adrecipient.OriginalPrimarySmtpAddress && adrecipient.EmailAddressPolicyEnabled)
            {
                this.WriteWarning(Strings.WarningCannotSetPrimarySmtpAddressWhenEapEnabled);
            }
            if (RecipientTaskHelper.IsMailEnabledRecipientType(adrecipient.RecipientType) && !adrecipient.EmailAddressPolicyEnabled && adrecipient.WindowsEmailAddress != adrecipient.OriginalWindowsEmailAddress && adrecipient.PrimarySmtpAddress == adrecipient.OriginalPrimarySmtpAddress)
            {
                adrecipient.PrimarySmtpAddress = adrecipient.WindowsEmailAddress;
            }
            if (adrecipient.RecipientType == RecipientType.MailUser && (RecipientTypeDetails)adrecipient[ADRecipientSchema.RecipientTypeDetailsValue] == RecipientTypeDetails.None)
            {
                adrecipient.RecipientTypeDetails = RecipientTypeDetails.MailUser;
            }
            RecipientTaskHelper.RemoveEmptyValueFromEmailAddresses(adrecipient);
            TaskLogger.LogExit();
            return(adrecipient);
        }