Table of Contents

Class InstanceIdProvider

Namespace
Virtufin.Api.Client
Assembly
Virtufin.Api.Client.dll

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

string

Methods

GetInstanceId()

The instance id, stable for the life of the process.

public string GetInstanceId()

Returns

string