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

AcceptMessageSession server timeout cannot be set to 0

$
0
0

Hello,

I'm calling QueueClient.AcceptMessageSessionAsync in .NET Service Bus SDK 3.0.3 and I need this method to return immediately if there're no session on the server available.

But there is a timeout argument validation inside SDK implementation that doesn't allow to use TimeSpan.Zero as server timeout.

We use TimeSpan.Zero for when calling ReceiveBatchAsync method and it works just fine.

What's the reason for this argument check inside AcceptMessageSession?

Current workaround is to use TimeSpan.FromTicks(1) as server timeout. Does it affect performance in any way?



Viewing all articles
Browse latest Browse all 1916

Trending Articles



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