Beispiel #1
0
        private async Task ProcessMessagesAsync(Message message, CancellationToken token)
        {
            var myPayload = JsonConvert.DeserializeObject <Payload>(Encoding.UTF8.GetString(message.Body));

            _processData.Process(myPayload);
            await _subscriptionClient.CompleteAsync(message.SystemProperties.LockToken);
        }
        public void Run(ProcessingContext context)
        {
            _processData.Process(context);

            Console.Clear();
            Console.WriteLine("Data processing complete");
        }