2012-04-17 83 views
1

在我的应用程序中,我在端点上使用NServiceBus网关进行设置,并且我可以使用来自同一台计算机的网址http://localhost/ {Endpoint name}来访问它。NServiceBus网关公共网址

我的问题是我必须做的,使用公共IP地址或域名从外部机器访问该端点。

例如,我如何通过url http:// {我的公共IP地址}/{端点名称}访问网关端点

回答

1

我自己找到了答案,您只需将通道地址更改为域名你想要

<GatewayConfig>  
    <Channels> 
    <Channel Address="http://{Your domain name}/{Endpoint name}/" ChannelType="Http" Default="true"/> 
    </Channels> 
</GatewayConfig>