-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add IClusterConnectionStatusObserver support
- Loading branch information
1 parent
9f51b16
commit 43014d0
Showing
3 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Orleans.Core; | ||
|
||
/// <summary> | ||
/// Interface that receives notifications about the status of the cluster connection. | ||
/// </summary> | ||
public interface IClusterConnectionStatusObserver | ||
{ | ||
/// <summary> | ||
/// Notifies this client that the number of connected gateways has changed | ||
/// </summary> | ||
/// <param name="currentNumberOfGateways"> | ||
/// The current number of gateways. | ||
/// </param> | ||
/// <param name="previousNumberOfGateways"> | ||
/// The previous number of gateways. | ||
/// </param> | ||
/// <param name="connectionRecovered">Helper to detect situations where cluster connectivity was regained.</param> | ||
void NotifyGatewayCountChanged(int currentNumberOfGateways, int previousNumberOfGateways, bool connectionRecovered); | ||
|
||
/// <summary> | ||
/// Notifies this client that the connection to the cluster has been lost. | ||
/// </summary> | ||
void NotifyClusterConnectionLost(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters