コード例 #1
0
        public async Task EnviarEmails(
            [QueueTrigger("%queueName_email%")]
            string message,
            int DequeueCount,
            ILogger logger
            )
        {
            int messageId = Convert.ToInt32(message);

            EmailMessage.Message mailMessage = _data.Info(messageId);
            string sgKey = await _email.SendEmail(mailMessage);

            _data.UpdateSendGridInfo(messageId, sgKey, DequeueCount);
            await _connection.InvokeAsync("Profile4D", sgKey);
        }