# IClusterConnectionStatusObserver.NotifyGatewayCountChanged(int, int, bool)

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

```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.
