我是 Azure 服务总线的新手。
我正在尝试将消息添加到 Azure 服务总线队列,如下所示
var message = new BrokeredMessage() { Label = inputFileEntity.FileName };
message.MessageId = new Guid().ToString();
message.Properties.Add("FilePath", inputFileEntity.FilePath);
// submit the file for injector
QueueConnector.InputFileQueueClient.Send(message);
我收到如下消息通信异常
Channel Open did not complete within the specified timeout of 00:01:00
当我初始化 QueueClient 时,我什至将操作超时值配置为 10 分钟,仍然是同样的问题
var namespaceManager = CreateNamespaceManager();
namespaceManager.Settings.OperationTimeout = new TimeSpan(0, 10, 0);
如果我出错了,任何方向或指示都会有很大帮助。
最佳答案
这通常表明存在网络问题,因为防火墙可能会阻止所需 TCP 端口上的出站通信。您还可以将连接模式设置为 http 并通过端口 80 发送流量。
ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http;
关于Azure 服务总线 - 消息通信异常 channel 打开超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22039424/