AccidentalFish.ApplicationSupport.Core.Email.Implementation.EmailQueueDispatcher.SendAsync C# (CSharp) Method

SendAsync() public method

public SendAsync ( IEnumerable to, IEnumerable cc, string @from, string emailTemplateId, string>.Dictionary mergeValues, TemplateSyntaxEnum templateSyntax = TemplateSyntaxEnum.Razor ) : System.Threading.Tasks.Task
to IEnumerable
cc IEnumerable
@from string
emailTemplateId string
mergeValues string>.Dictionary
templateSyntax TemplateSyntaxEnum
return System.Threading.Tasks.Task
        public async Task SendAsync(IEnumerable<string> to, IEnumerable<string> cc, string @from, string emailTemplateId, Dictionary<string, string> mergeValues, TemplateSyntaxEnum templateSyntax = TemplateSyntaxEnum.Razor)
        {
            _logger?.Verbose("EmailQueueDispatcher - SendAsync with template - {0}", emailTemplateId);

            EmailQueueItem item = new EmailQueueItem
            {
                Cc = new List<string>(cc),
                EmailTemplateId = emailTemplateId,
                From = from,
                MergeData = mergeValues,
                To = new List<string>(to),
                TemplateSyntax = templateSyntax
            };

            await _queue.EnqueueAsync(item);
        }

Same methods

EmailQueueDispatcher::SendAsync ( IEnumerable to, IEnumerable cc, string @from, string subject, string htmlBody, string textBody ) : System.Threading.Tasks.Task
EmailQueueDispatcher::SendAsync ( string to, string cc, string @from, string emailTemplateId, string>.Dictionary mergeValues, TemplateSyntaxEnum templateSyntax = TemplateSyntaxEnum.Razor ) : System.Threading.Tasks.Task
EmailQueueDispatcher::SendAsync ( string to, string cc, string @from, string subject, string htmlBody, string textBody ) : System.Threading.Tasks.Task