コード例 #1
0
        /// <summary>
        /// Adds publish metadata to the email body
        /// </summary>
        /// <param name="records">Publish metadata</param>
        public void Add(IEnumerable <PublishMetadataEntity> records)
        {
            // initialize string
            if (this.HtmlBody == null)
            {
                this.HtmlBody = string.Empty;
            }

            this.HtmlBody += ConvertToHtml.Convert(records);
        }
コード例 #2
0
        /// <summary>
        /// Adds an exception to the email body
        /// </summary>
        /// <param name="e">Exception</param>
        public void Add(Exception e)
        {
            // initialize string
            if (this.HtmlBody == null)
            {
                this.HtmlBody = string.Empty;
            }

            this.HtmlBody += ConvertToHtml.Convert(e);
        }