[英]Azure Service Bus Request Time Out Issue
當我使用以下代碼調用Azure Service Bus時,出現超時錯誤。 所以我應用了重試邏輯,但是仍然出現超時錯誤。
var msgFactory = MessagingFactory.CreateFromConnectionString(connection); var namespaceManager = NamespaceManager.CreateFromConnectionString(connection);
if(!await namespaceManager.QueueExistsAsync(queueName))//超時錯誤
{///碼}
請求已在60000毫秒后超時。 無法確定請求的成功完成。 應該進行其他查詢以確定該操作是否成功。 TrackingId:143b4d25-e97c-4270-8714-93a4c6818fea,TimeStamp:2016/1/19 8:30:36 PM
可能是因為缺少一對括號:
if (!await namespaceManager.QueueExistsAsync(queueName))
應該是:
if (!(await namespaceManager.QueueExistsAsync(QueueName)))
我們需要在公司防火牆之外運行預賽,然后它才能工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.