Table of Contents

Interface IInstanceIdProvider

Namespace
Virtufin.WebSocketManager.Services
Assembly
Virtufin.WebSocketManager.dll

Provides the unique identifier for this service instance.

public interface IInstanceIdProvider

Methods

GetInstanceId()

Gets the unique identifier for this service instance.

string GetInstanceId()

Returns

string

GetKnownInstanceIds()

Gets all known live instance IDs in the cluster. Used for reclaiming orphaned connections from dead instances.

IReadOnlySet<string> GetKnownInstanceIds()

Returns

IReadOnlySet<string>

RegisterLiveInstance(string)

Registers a newly discovered live instance. Called by InstanceHeartbeatService when peer heartbeats are observed within the stale-threshold window.

void RegisterLiveInstance(string instanceId)

Parameters

instanceId string