Hi. I cannot figure out how work with the RegisterMessageHandler and CloseAsync(). I have a C# web app that connects with a azure service bus topic with this code: subscriptionClient.RegisterMessageHandler( async (message, token) => {.....await subscriptionClient.CompleteAsync(message.SystemProperties.LockToken); ........ } When I deploy this app to the IIS, everytime a message is inserted in the topic, its processed inmediately. The problem comes when I put the following code: await subscriptionClient.CloseAsync(); After I upload the new version it never processes again when a message is inserted, without this line, the webapp is able to process the messages every time they are inserted. Please Can someone explain to me why this line makes my process fail?
It also happens in Visual Studio environment, when I am in debug mode, every time I insert a new message it is processed without await subscriptionClient.CloseAsync(), but when I put this line if I insert a new message its not processed anymore.
Thanks in advance.