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

Guidance OnMessageOptions.AutoRenewTimeout

$
0
0
Are you able to offer some more guidance on the use of the OnMessageOptions.AutoRenewTimeout as I haven't found much documentation on this option, and would like to know if this is the correct way to renew a message lock

My use case:

1) Message Processing Queue has a Lock Duration of 5 minutes (The maximum allowed)

2) Message Processor using the OnMessageAsync message pump to read from the queue (with a ReceiveMode.PeekLock) The long running processing may take up to 10 minutes to process the message before manually calling msg.CompleteAsync

3) I want the message processor to automatically renew it's lock up until the time it's expected to Complete processing (~10minutes). If after that period it hasn't been completed, the lock should be automatically released.

Thanks

Viewing all articles
Browse latest Browse all 1916

Trending Articles



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