Пример #1
0
        public static OutboundMailRecipients FromArray(BasicOutboundMailRecipient[] basicArray, OutboundMail mail)
        {
            OutboundMailRecipients result = new OutboundMailRecipients();

            result.Capacity = basicArray.Length * 11 / 10;
            foreach (BasicOutboundMailRecipient basic in basicArray)
            {
                result.Add(OutboundMailRecipient.FromBasic(basic, mail));
            }

            return(result);
        }
Пример #2
0
 public OutboundMailRecipients GetNextRecipientBatch(int batchSize)
 {
     return
         (OutboundMailRecipients.FromArray(
              SwarmDb.GetDatabaseForReading().GetTopOutboundMailRecipients(Identity, batchSize), this));
 }