Exemple #1
0
        protected override void InternalBeginProcessing()
        {
            TaskLogger.LogEnter();
            base.InternalBeginProcessing();
            TPublicObject dynamicParametersInstance = (TPublicObject)((object)this.GetDynamicParameters());

            if (dynamicParametersInstance.EmailAddresses.Changed && dynamicParametersInstance.IsChanged(ADRecipientSchema.PrimarySmtpAddress))
            {
                base.ThrowTerminatingError(new RecipientTaskException(Strings.ErrorPrimarySmtpAndEmailAddressesSpecified), ExchangeErrorCategory.Client, null);
            }
            MultiLinkSyncHelper.ValidateIncompatibleParameters(base.Fields, this.GetIncompatibleParametersDictionary(), new Task.ErrorLoggerDelegate(base.ThrowTerminatingError));
            this.ValidateMailTipsParameters(dynamicParametersInstance);
            TaskLogger.LogExit();
        }
Exemple #2
0
 public static void ValidateIncompatibleParameters(PropertyBag parameters, Dictionary <object, ArrayList> incompatibleParametersDictionary, Task.ErrorLoggerDelegate writeError)
 {
     foreach (object obj in incompatibleParametersDictionary.Keys)
     {
         if (parameters.IsModified(obj))
         {
             foreach (object obj2 in incompatibleParametersDictionary[obj])
             {
                 if (parameters.IsModified(obj2))
                 {
                     writeError(new RecipientTaskException(Strings.ErrorConflictingRestrictionParameters(MultiLinkSyncHelper.GetPropertyName(obj), MultiLinkSyncHelper.GetPropertyName(obj2))), ExchangeErrorCategory.Client, null);
                 }
             }
         }
     }
 }