We have a situation where we have been using ordinary windows service based on WCF where we host a number of listeners on the same address, port with just additional suffix on the address, such as:
http://localhost:9000/<listener1_name>/
http://localhost:9000/<listener2_name>/
http://localhost:9000/<listener3_name>/
http://localhost:9000/<listener4_name>/
However, now that we like to move over to asuze by using service fabric we like to take it step by step. And one of the step is to move this windows service into the Service Fabric environment...
What I fail to do is as you might realise, to setup a number of stateless services that listen to the same port, but with different suffix.
I thought that the PathSuffix
attribute in the EndPoint
would do the trick, but I get only one of the services up and running. The others states clearly that the port is already taken.
Hoped this would work:
<Resources>
<Endpoints>
<Endpoint Name="WcfService1Endpoint" Protocol="tcp" Port="9000" PathSuffix="Service1ListenerName" /
<Endpoints>
</Resources>
and then in the next:
<Resources>
<Endpoints>
<Endpoint Name="WcfService2Endpoint" Protocol="tcp" Port="9000" PathSuffix="Service2ListenerName" />
<Endpoints>
</Resources>
Etc, etc...
Is there any other way to solve my situation, or do I need to change the whole structure now?
Hoping someone out there has solved this!
Thanks!