Пример #1
0
 protected override void ValidateRead(List <ValidationError> errors)
 {
     if (this.Addresses == null || this.Addresses.Length == 0)
     {
         errors.Add(new RulePhrase.RulePhraseValidationError(RulesTasksStrings.ArgumentNotSet, base.Name));
         return;
     }
     foreach (SmtpAddress smtpAddress in this.Addresses)
     {
         if (!smtpAddress.IsValidAddress)
         {
             errors.Add(new RulePhrase.RulePhraseValidationError(RulesTasksStrings.InvalidSmtpAddress(smtpAddress.ToString()), base.Name));
             return;
         }
     }
     base.ValidateRead(errors);
 }