Connection Lost Handler in Silohost #7177
JunioPereira
started this conversation in
General
Replies: 1 comment 1 reply
-
You can get notifications from Something like this: var previous = _clusterMembershipService.CurrentSnapshot;
await foreach (var snapshot in _clusterMembershipService.MembershipUpdates.WithCancellation(shutdownToken))
{
var diff = snapshot.CreateUpdate(previous);
foreach (var change in diff.Changes)
{
if (change.Status == SiloStatus.Dead)
{
Console.WriteLine($"Server {change.SiloAddress} has been removed");
}
}
previous = snapshot;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello guys,
Is possible we have a Cluster Connection Lost Handler in Silohost?
I want know when a server shutdown/ or crashed.
Beta Was this translation helpful? Give feedback.
All reactions