Ejemplo n.º 1
0
        private async Task ProcessMessagesAsync(Message message, CancellationToken token)
        {
            //await ProccessData(message);
            //var myPayload = JsonConvert.DeserializeObject<Customer>(Encoding.UTF8.GetString(message.Body));
            //await _processData.Process(myPayload);
            await _processData.ProcessAsync(message);

            await queueClient.CompleteAsync(message.SystemProperties.LockToken);
        }