how to get name of node on which my code is executing in azure fabric service?

Viewed 3549

How can I get the name of the machine on which my code is running in a Azure Fabric Cluster for logging purposes?

I am running a c# code in a fabric cluster with some nodes. I would like to log some information along with the machine name. I am using FabricRuntime, but it is not helping me. What is the best way to do this ?

Thanks.

3 Answers
FabricRuntime.GetNodeContext().NodeName
Related