// This function will get triggered/executed when a new message is written // on an Azure Queue called queue. public async Task ProcessQueueMessage([QueueTrigger("queueappb")] PictureJob job, TextWriter log) { try { await userPictureService.GenerateUserPicture(job.PictureId); log.WriteLine($"Image proccesed ID:{job.PictureId}"); } catch (Exception ex) { log.WriteLine($"Error: {ex.Message}"); throw ex; } }
// This function will get triggered/executed when a new message is written // on an Azure Queue called queue. public async Task ProcessQueueMessage([QueueTrigger("queueappa")] PictureJob job, TextWriter log) { await userPictureService.GenerateUserPicture(job.PictureId); }