public async Task NotifyImageCreated(string image)
        {
            var client = GetQueueClient();
            var msg    = new ImageCreatedMsg
            {
                Image              = image,
                ImageContainer     = _options.ImageContainer,
                ThumbnailContainer = _options.ThumbnailContainer
            };

            var payload = JsonConvert.SerializeObject(msg);
            await client.SendAsync(new Message(Encoding.UTF8.GetBytes(payload)));
        }
Exemplo n.º 2
0
        public async Task NotifyImageCreated(string image)
        {
            var queue = GetQueue();
            var msg   = new ImageCreatedMsg
            {
                Image              = image,
                ImageContainer     = _options.ImageContainer,
                ThumbnailContainer = _options.ThumbnailContainer
            };

            var payload = JsonConvert.SerializeObject(msg);

            await queue.AddMessageAsync(new CloudQueueMessage(payload));
        }