# IClusterConnectionStatusObserver Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.iclusterconnectionstatusobserver/)

## NotifyClusterConnectionLost {#notifyclusterconnectionlost-09ebf55d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.iclusterconnectionstatusobserver/methods/notifyclusterconnectionlost-09ebf55d/)

```csharp
public abstract void NotifyClusterConnectionLost()
```

Notifies this observer that the connection to the cluster has been lost.

## NotifyGatewayCountChanged(int, int, bool) {#notifygatewaycountchanged-int-int-bool-8bf71d15}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.iclusterconnectionstatusobserver/methods/notifygatewaycountchanged-int-int-bool-8bf71d15/)

```csharp
public abstract void NotifyGatewayCountChanged(int currentNumberOfGateways, int previousNumberOfGateways, bool connectionRecovered)
```

Notifies this observer that the number of connected gateways has changed.

### Parameters

- `currentNumberOfGateways` (`int`): The current number of gateways.
- `previousNumberOfGateways` (`int`): The previous number of gateways.
- `connectionRecovered` (`bool`): Indicates whether a loss of connectivity has been resolved.
