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); }
internal static void SetDefaultAttendeeProperties(CoreRecipient coreRecipient) { RecipientBase.SetDefaultRecipientBaseProperties(coreRecipient); coreRecipient.RecipientItemType = Attendee.AttendeeTypeToRecipientItemType(AttendeeType.Required); coreRecipient.PropertyBag[InternalSchema.RecipientTrackStatus] = 0; }
internal static void SetDefaultRecipientProperties(CoreRecipient coreRecipient) { RecipientBase.SetDefaultRecipientBaseProperties(coreRecipient); coreRecipient.RecipientItemType = RecipientItemType.To; }
internal BlobRecipient(RecipientBase recipient) { this.propertyBag = new MemoryPropertyBag(recipient.CoreRecipient.GetMemoryPropertyBag()); this.propertyBag.SetAllPropertiesLoaded(); }
protected override bool IsRecipientIncluded(RecipientBase recipientBase) { return(this.recipientItemType == null || this.recipientItemType == recipientBase.RecipientItemType); }
protected abstract bool IsRecipientIncluded(RecipientBase recipientBase);