Class InstanceIdProvider
The pod name (HOSTNAME) when it is set and non-empty, otherwise a
random GUID fixed for the life of the process.
public sealed class InstanceIdProvider : IInstanceIdProvider
- Inheritance
-
InstanceIdProvider
- Implements
- Inherited Members
Fields
HostnameEnvVar
The environment variable holding the instance id.
public const string HostnameEnvVar = "HOSTNAME"
Field Value
Methods
GetInstanceId()
The instance id, stable for the life of the process.
public string GetInstanceId()