Windows (而不是Azure)服务总线的正确端口配置是什么,以便标准的azure绑定可以在AppFabric服务总线上工作?
在下面的示例中,我在试图打开主机时“无法通过TCP (9351,9352)或HTTP (80,443)到达”。
服务总线配置(默认):
HTTPS Port 9355
TCP Port 9354
Message Broker Port 9356
Resource Provider HTTPS Port 9359
Amqp Port 5672
Amqps Port 5671
Internal Communication Port Range 9000 - 9004
主机:
app.config
<system.serviceModel>
<services>
<service name = "MyService">
<endpoint
address = "sb://vm-sbdemo-petar/ServiceBusDefaultNamespace/MyService/"
binding = "netOnewayRelayBinding"
contract = "IMyContract"
/>
</service>
</services>
</system.serviceModel>
main
ServiceHost host = new ServiceHost(typeof(MyService));
host.SetServiceBusCredentials("string");
ConnectionStatusBehavior behavior = new ConnectionStatusBehavior();
behavior.Connecting += OnConnecting;
behavior.Offline += OnOffline;
behavior.Online += OnOnline;
foreach(ServiceEndpoint endpoint in host.Description.Endpoints)
{
endpoint.Behaviors.Add(behavior);
}
host.Open();
Console.WriteLine("Press ENTER to shut down service.");
Console.ReadLine();
host.Close();
发布于 2013-07-01 17:28:41
Windows Server的服务总线不支持中继功能,此功能目前仅在Azure服务总线上可用。详细信息请访问:http://msdn.microsoft.com/en-us/library/jj193022(v=azure.10).aspx
发布于 2013-06-29 08:13:03
试试看,如果有代理涉及。
<system.net>
<defaultProxy useDefaultCredentials="true">
</defaultProxy>
</system.net>
https://stackoverflow.com/questions/17375902
复制相似问题