Hi,
I have created a servicebus topic subscription using SAS token. The SAS token expires after 5mins.
I have registered a function to be called on message and another one on exception.
var messageOptions = new OnMessageOptions();
messageOptions.ExceptionReceived += onMessageException;
mySubscriptionClient.OnMessage(studyBolusMessageCallBack, messageOptions);
After SAS expiry the exception function is calling repeatedly. I want this to be called only once for recreating the subscription using new SAS token. Please help in resolving this issue.
I did not find any documentation on net that talks about using this event driven model for receiving messages when using SAS tokens. Any help is appreciated.