Ejemplo n.º 1
0
        public async Task AddToQueueAsync(EmailQueueMessage messageModel)
        {
            var storageAccount = CloudStorageAccount.Parse(_configProvider.GetConnectionString(Application.BandCamsStorage));
            var cloudQueue     = storageAccount.CreateCloudQueueClient().GetQueueReference(_configProvider.GetQueueName(Queue.EmailQueue));

            var message = new CloudQueueMessage(JsonConvert.SerializeObject(messageModel));
            await cloudQueue.AddMessageAsync(message);
        }