public async Task HandleEventAsync(BookEventData eventData)
 {
     // 发送邮件
     await _mailKitSmtpEmailSender.SendAsync(
         "*****@*****.**", // target email address
         "我爱你",               // subject
         await _emailingTextTemplateService.RunAsync()
         );
 }
Exemplo n.º 2
0
        //[IgnoreAntiforgeryToken]
        public async Task <string> TestRemoveCache()
        {
            await _distributedEventBus.PublishAsync(new BookEventData
            {
                Key = ""
            });

            return(await _emailingTextTemplateService.RunAsync());
        }