Handle Azure MessagingCommunicationException correctly?

I have multiple long running processes listening on the same azure servicebus thread. After running for a long time (usually a few days), I get one of these exceptions in one of the processes (and they all seem to stop working). The post itself and the documentation show that the answer is to reconnect. At first I was just trying to create a new TopicClient, but then I figured out that the actual connection was through the MessagingFactory. Now I tried to create a completely new MessagingFactory, but that doesn't seem to work either.

What is the correct way to handle this exception? An example (even pseudo code) would be great.

+3


source to share





All Articles