private string BuildAggregatedValue <T>(IRecipientBaseCollection <T> recipientBaseCollection) where T : RecipientBase
        {
            StringBuilder stringBuilder = new StringBuilder(recipientBaseCollection.Count * (15 + "; ".Length));

            foreach (T t in recipientBaseCollection)
            {
                RecipientBase recipientBase = t;
                this.BuildStringForOneRecipient(stringBuilder, recipientBase);
            }
            return(stringBuilder.ToString());
        }
 private void BuildStringForOneRecipient(StringBuilder sb, RecipientBase recipientBase)
 {
     if (!this.IsRecipientIncluded(recipientBase))
     {
         return;
     }
     if (sb.Length > 0)
     {
         sb.Append("; ");
     }
     sb.Append(recipientBase.TryGetProperty(this.recipientStringProperty) as string);
 }
Example #3
0
 internal static void SetDefaultAttendeeProperties(CoreRecipient coreRecipient)
 {
     RecipientBase.SetDefaultRecipientBaseProperties(coreRecipient);
     coreRecipient.RecipientItemType = Attendee.AttendeeTypeToRecipientItemType(AttendeeType.Required);
     coreRecipient.PropertyBag[InternalSchema.RecipientTrackStatus] = 0;
 }
Example #4
0
 internal static void SetDefaultRecipientProperties(CoreRecipient coreRecipient)
 {
     RecipientBase.SetDefaultRecipientBaseProperties(coreRecipient);
     coreRecipient.RecipientItemType = RecipientItemType.To;
 }
Example #5
0
 internal BlobRecipient(RecipientBase recipient)
 {
     this.propertyBag = new MemoryPropertyBag(recipient.CoreRecipient.GetMemoryPropertyBag());
     this.propertyBag.SetAllPropertiesLoaded();
 }
Example #6
0
 protected override bool IsRecipientIncluded(RecipientBase recipientBase)
 {
     return(this.recipientItemType == null || this.recipientItemType == recipientBase.RecipientItemType);
 }
 protected abstract bool IsRecipientIncluded(RecipientBase recipientBase);