public async Task RunAsync([QueueTrigger(QueueNames.DistributionQueueName)] string queueItemContents, CancellationToken cancellationToken) { _logger.SetInternalRequestId(Guid.NewGuid()); _logger.Info($"Starting to process queue item {queueItemContents}"); var distribution = JsonConvert.DeserializeObject <Distribution>(queueItemContents); await _sendManager.SendAsync(distribution, cancellationToken); }