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
GetKnownInstanceIds()
Gets all known live instance IDs in the cluster. Used for reclaiming orphaned connections from dead instances.
IReadOnlySet<string> GetKnownInstanceIds()
Returns
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
instanceIdstring