public async Task ProcessQueueMessageWebJobPdfPoison ( [QueueTrigger("%queueName%-poison")] string message, int DequeueCount, ILogger logger ) { Form info = _info.GetFileInfo(Convert.ToInt32(message)); Form mailMsg = new Form(info.Name, info.Email); string SGMsg = await _email.SendErrorMessage(mailMsg); _info.UpdateFileInfo(Convert.ToInt32(message), false, DequeueCount, SGMsg); }
public async void ProcessQueueMessageWebJobXmlPoison ( [QueueTrigger("webjob-xml-poison")] string message, int DequeueCount, ILogger logger ) { Inserted myFiles = _myFiles.GetFileInfo(Convert.ToInt32(message)); Form mailMsg = new Form(myFiles.Name, myFiles.Email); string sgID = await _myEmail.SendErrorMessage(mailMsg); Inserted update = new Inserted(Convert.ToInt32(message), false, DequeueCount, sgID); _myFiles.UpdateFileInfo(update); }