コード例 #1
0
        /// <summary>
        /// Gets the message.
        /// </summary>
        /// <param name="item">
        /// The editable root item.
        /// </param>
        /// <param name="person">
        /// The person.
        /// </param>
        /// <returns>
        /// The action message.
        /// </returns>
        public string GetMessage(IDynamicObject item, Actions.PersonInfo person)
        {
            if (item == null)
                throw new ArgumentNullException("item");

            if (person == null)
                throw new ArgumentNullException("person");

            return GetMessage(item, person.GetCulture(), person.Id, EmailDeepLink);
        }
コード例 #2
0
        /// <summary>
        /// Gets the subject.
        /// </summary>
        /// <param name="item">
        /// The editable root item.
        /// </param>
        /// <param name="person">
        /// The person.
        /// </param>
        /// <returns>
        /// The action subject.
        /// </returns>
        public string GetSubject(IDynamicObject item, Actions.PersonInfo person)
        {
            if (item == null)
                throw new ArgumentNullException("item");

            if (person == null)
                throw new ArgumentNullException("person");

            return SubjectTemplate != null ? SubjectTemplate.GetSubject(item, person.GetCulture()) : null;
        }