/// <summary> /// Entry point for language searching. /// </summary> /// <param name="templateId">Email template identifier.</param> /// <param name="templateLoader">Email template store.</param> /// <returns>Language identifier for email template.</returns> public override Guid Handle(Guid templateId, ITemplateLoader templateLoader) { var contactId = CaseEntity.GetTypedColumnValue <Guid>("ContactId"); Guid contactLanguageId = _commLang.Get(contactId); if (contactLanguageId != default(Guid) && IsTemplateValid(templateId, contactLanguageId, templateLoader)) { return(contactLanguageId); } return(Successor != null?Successor.Handle(templateId, templateLoader) : Guid.Empty); }
/// <summary> /// Get recipients mailboxes. /// </summary> /// <returns>All recipients mailboxes.</returns> private string[] GetRecipientMailboxes() { var parentActivityId = CaseEntity.GetTypedColumnValue <Guid>("ParentActivityId"); if (parentActivityId != default(Guid)) { string allRecipients = GetRecipients(parentActivityId); return(ActivityUtils.ParseEmailAddress(allRecipients).ToArray()); } return(new string[0]); }