async Task ProcessMessagesAsync(Message message, CancellationToken token) { string msg = Encoding.UTF8.GetString(message.Body); //OrderMenus msg = JsonConvert.DeserializeObject<OrderMenus>(Encoding.UTF8.GetString(message.Body)); business_Repo.UpdateItemsinstock(msg); //string msg = Encoding.UTF8.GetString(message.Body); await subscriptionClient.CompleteAsync(message.SystemProperties.LockToken); // Note: Use the cancellationToken passed as necessary to determine if the subscriptionClient has already been closed. // If subscriptionClient has already been closed, you can choose to not call CompleteAsync() or AbandonAsync() etc. // to avoid unnecessary exceptions. }