Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Is there a property or method within the MessageReceiver or MessagingFactory which will tell me if OnMessage/Async is currently active?

$
0
0

I would like to know if it's possible to check if a MessageReceiver OnMessage or OnMessageAsync method has already been called before trying to call one of these methods, rather than handling the exception: 

"The method 'OnMessage' or 'OnMessageAsync' has already been called."

afterwards without manually setting up a flag to do this. Since the service bus is aware of the status of these 'listeners', surely it must expose this info somewhere?


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>