示例#1
0
        public Task <NotificationEvent> BlogCommentReplyAsync(PostData post, CommentData comment, CommentData parent)
        {
            var notificationEvent = new NotificationEvent(
                "blog.comment.reply", new Dictionary <string, string>
            {
                { "post.url", GetPostUrl(post) },
                { "post.title", post.Title },
                { "post.author", post.Author },
                { "comment.author", comment.Author },
                { "comment.url", GetCommentUrl(post, comment) },
                { "comment.html", _markdownParser.ToUntrustedHtml(comment.Markdown) },
                { "parent.author", comment.Author },
                { "parent.url", GetCommentUrl(post, parent) },
            });

            return(Task.FromResult(notificationEvent));
        }