# AdoNetGatewayListProvider.GetGateways

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.clustering.adonet/orleans.runtime.membership.adonetgatewaylistprovider/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.clustering.adonet/orleans.runtime.membership.adonetgatewaylistprovider/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Clustering.AdoNet/Messaging/AdoNetGatewayListProvider.cs#L54-L64)

```csharp
public Task<IList<Uri>> GetGateways()
```

Returns the list of gateways (silos) that can be used by a client to connect to Orleans cluster. The Uri is in the form of: "gwy.tcp://IP:port/Generation". See Utils.ToGatewayUri and Utils.ToSiloAddress for more details about Uri format.

### Returns

The list of gateway endpoints.
