[英]Difference between serverWaitTime and operationTimeout in Azure Service Bus SDK/NuGet
I am trying to understand the difference between: 我试图了解之间的区别:
The documentation provides following text on both: 该文档提供了以下两种内容:
In my experimental code, ISessionClient.AcceptMessageSessionAsync(session, serverWaitTime) seem to return immediately (even when large number of sessions are being created) where as IMessageReceiver.ReceiveAsync will definitely wait for supplied operationTimeout before timing out if the message with that session is not available. 在我的实验代码中,ISessionClient.AcceptMessageSessionAsync(session,serverWaitTime)似乎立即返回(即使正在创建大量会话时),其中IMessageReceiver.ReceiveAsync肯定会等待提供的operationTimeout,然后再超时(如果没有该会话的消息)可用。
Hence I am wondering if serverWaitTime means something else that I do not understand. 因此,我想知道serverWaitTime是否意味着我不理解的其他内容。
Both serverWaitTime
and operationTimeout
parameters represent the same concept - wait time for the client before it gives up. serverWaitTime
和operationTimeout
参数代表相同的概念-等待客户端放弃之前的时间。
As for the reason they are called differently, that's a question for the team to be raised in the issue tarcker . 由于他们被不同地称呼的原因,这是团队在问题tarcker中提出的一个问题 。
The session client has operation timeout that let's one define a timeout period for all sessions. 会话客户端具有操作超时,我们可以为所有会话定义超时期限。
Each individual session via AcceptMessageSessionAsync can override that value by supplying the server wait time. 通过AcceptMessageSessionAsync的每个会话都可以通过提供服务器等待时间来覆盖该值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.