コード例 #1
0
        public async Task ProcessQueueMessageWebJobPdf
        (
            [QueueTrigger("%queueName%")]
            string message,
            int DequeueCount,
            ILogger logger
        )
        {
            Form info = _info.GetFileInfo(Convert.ToInt32(message));

            Image pdfEnglish = new Image($"{info.Guid}-eng.pdf", "application/pdf", _pdf.CreateEnglish(info));

            _blob.Save(pdfEnglish);

            if (info.Portuguese)
            {
                Image pdfPortuguese = new Image($"{info.Guid}-pt.pdf", "application/pdf", _pdf.CreatePortuguese(info));

                _blob.Save(pdfPortuguese);
            }

            string SGMsg = await _email.SendSuccessMessage(info);

            _info.UpdateFileInfo(Convert.ToInt32(message), true, DequeueCount, SGMsg);
        }