是否可以获取运行我的代码的Service Fabric应用程序的名称?
例如,我的ApplicationParameters文件包含:
<Application xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="fabric:/mytestapp" xmlns="http://schemas.microsoft.com/2011/01/fabric">
Run Code Online (Sandbox Code Playgroud)
我想检索"mytestapp"并在我的代码中使用它,但我没有找到任何可以让我这样做的东西.有任何想法吗?