Skip to content

Commit c946504

Browse files
John Simonsshlomii
John Simons
authored andcommitted
Making sure Gateway sample doesn't use port 80 as the default port because it can conflict with an existing application like Skype
1 parent 9a325c7 commit c946504

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

Samples/Gateway/Headquarter/App.config

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
<GatewayConfig>
1111
<Sites>
12-
<Site Key="SiteA" Address="http://localhost/SiteA/" ChannelType="Http"/>
13-
<Site Key="SiteB" Address="http://localhost/SiteB/" ChannelType="Http"/>
12+
<Site Key="SiteA" Address="http://localhost:25899/SiteA/" ChannelType="Http"/>
13+
<Site Key="SiteB" Address="http://localhost:25899/SiteB/" ChannelType="Http"/>
1414
</Sites>
1515
<Channels>
16-
<Channel Address="http://localhost/Headquarter/" ChannelType="Http" Default="true"/>
17-
<Channel Address="http://localhost/Headquarter2/" ChannelType="Http"/>
16+
<Channel Address="http://localhost:25899/Headquarter/" ChannelType="Http" Default="true"/>
17+
<Channel Address="http://localhost:25899/Headquarter2/" ChannelType="Http"/>
1818
</Channels>
1919
</GatewayConfig>
2020
</configuration>

Samples/Gateway/SiteA/App.config

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
<configuration>
33
<configSections>
44
<section name="MessageForwardingInCaseOfFaultConfig" type="NServiceBus.Config.MessageForwardingInCaseOfFaultConfig, NServiceBus.Core" />
5+
<section name="GatewayConfig" type="NServiceBus.Config.GatewayConfig, NServiceBus.Core" />
56
</configSections>
6-
7+
<GatewayConfig>
8+
<Channels>
9+
<Channel Address="http://localhost:25899/SiteA/" ChannelType="Http" Default="true"/>
10+
</Channels>
11+
</GatewayConfig>
712
<MessageForwardingInCaseOfFaultConfig ErrorQueue="error"/>
813
</configuration>

Samples/Gateway/SiteB/App.config

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
<configuration>
33
<configSections>
44
<section name="MessageForwardingInCaseOfFaultConfig" type="NServiceBus.Config.MessageForwardingInCaseOfFaultConfig, NServiceBus.Core"/>
5+
<section name="GatewayConfig" type="NServiceBus.Config.GatewayConfig, NServiceBus.Core" />
56
</configSections>
6-
7+
<GatewayConfig>
8+
<Channels>
9+
<Channel Address="http://localhost:25899/SiteB/" ChannelType="Http" Default="true"/>
10+
</Channels>
11+
</GatewayConfig>
712
<MessageForwardingInCaseOfFaultConfig ErrorQueue="error"/>
8-
9-
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
13+
</configuration>

Samples/Gateway/WebClient/Index.htm

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</script>
4444
<h1>Click the button below to make a JSONP request to the nservicebus gateway</h1>
4545
<p>Gateway address:</p>
46-
<input type="text" id="gatewayaddress" value="http://localhost/Headquarter/" size="60"/><br/>
46+
<input type="text" id="gatewayaddress" value="http://localhost:25899/Headquarter/" size="60"/><br/>
4747
<input type="button" id="go" name="go" value="Send price update command to server" />
4848
</body>
4949
</html>

0 commit comments

Comments
 (0)