# GatewayCountChangedEventArgs Properties

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

## ConnectionRecovered {#connectionrecovered-eafa71db}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.gatewaycountchangedeventargs/properties/connectionrecovered-eafa71db/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Core/GatewayCountChangedEventArgs.cs#L37)

```csharp
public bool ConnectionRecovered
```

Helper to detect situations where cluster connectivity was regained.

## NumberOfConnectedGateways {#numberofconnectedgateways-53b88d35}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.gatewaycountchangedeventargs/properties/numberofconnectedgateways-53b88d35/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Core/GatewayCountChangedEventArgs.cs#L27)

```csharp
public int NumberOfConnectedGateways
```

Gets the number of gateways which this client is currently connected to.

## PreviousNumberOfConnectedGateways {#previousnumberofconnectedgateways-9a885d42}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.gatewaycountchangedeventargs/properties/previousnumberofconnectedgateways-9a885d42/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Core/GatewayCountChangedEventArgs.cs#L32)

```csharp
public int PreviousNumberOfConnectedGateways
```

Gets the number of gateways which this client was currently connected to before this event.
