示例#1
0
        /// <inheritdoc />
        public async Task HandleAsync(NotificationMessage <EmailNotificationMessage> notificationMessage)
        {
            logger.LogInformation("Start handle message for sending email.");

            notificationMessage.ThrowIfNull(nameof(notificationMessage));

            var email = await emailMessageFactory.CreateFromNotificationMessage(notificationMessage);

            await emailNotifier.SendEmailAsync(email);
        }