如何配置不同的应用程序实例?我知道您可以参数化ApplicationManifest和服务Config包,但是如何在两个不同的应用程序实例中为the服务指定不同的端口呢?not服务的端点是在ServiceManifest中定义的,它不能被参数化afaik。
<Resources>
<Endpoints>
<!-- This endpoint is used by the communication listener to obtain the port on which to
listen. Please note that if your service is partitioned, this port is shared with
replicas of different partitions that are placed in your code. -->
<Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input" Port="80" />
</Endpoints>
</Resources>
假设我有一个应用程序类型MyAppType,它包含一个服务类型MyWebSvcType。我创建了应用程序类型MyAppTenant1和MyAppTenant2的两个实例。如何指定MyAppTenant1的webservice侦听端口80,MyAppTenant2的webservice侦听端口81。这是因为它们可能位于同一个节点上,因此应该侦听不同的端口。
https://stackoverflow.com/questions/43762217
复制相似问题