コード例 #1
0
 public async Task NotifyCommentReplyAsync(CommentReplyPayload payload)
 {
     try
     {
         await SendAsync(new NotificationRequest <CommentReplyPayload>(MailMesageTypes.AdminReplyNotification, payload));
     }
     catch (Exception e)
     {
         _logger.LogError(e, e.Message);
     }
 }
コード例 #2
0
        public async Task NotifyCommentReplyAsync(string email, string commentContent, string title, string replyContentHtml, string postLink)
        {
            var payload = new CommentReplyPayload(
                email,
                commentContent,
                title,
                replyContentHtml,
                postLink);

            try
            {
                await SendAsync(new NotificationRequest <CommentReplyPayload>(MailMesageTypes.AdminReplyNotification, payload));
            }
            catch (Exception e)
            {
                _logger.LogError(e, e.Message);
            }
        }