【问题标题】:Using dynamically assigned port in guest executable in Service Fabric在 Service Fabric 的来宾可执行文件中使用动态分配的端口
【发布时间】:2018-03-22 02:09:04
【问题描述】:

如何从来宾可执行文件 Rest Server 中获取 Service Fabric 分配的端口?

我需要配置我的可执行文件以使用此端口。我想我可以使用端口号作为参数来执行我的应用程序,但我没有找到它。

解决方法是 https://medium.com/@mattmazzola/service-fabric-using-dynamically-assigned-port-in-guest-executable-91a881e2a27a 官方不支持,下个版本就不能用了。

【问题讨论】:

    标签: azure-service-fabric


    【解决方案1】:

    应在来宾可执行文件启动之前设置以下环境变量

    Fabric_Endpoint_[YourServiceName]TypeEndpoint

    https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-manage-multiple-environment-app-configuration

    【讨论】:

      猜你喜欢
      • 2016-12-10
      • 2018-10-04
      • 2017-07-07
      • 2020-08-12
      • 2018-03-11
      • 2017-01-28
      • 2019-08-16
      • 2019-04-26
      • 2018-07-24
      相关资源
      最近更新 更多