# AdoNetGatewayListProvider Methods

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

## GetGateways {#getgateways-f8671e3e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.adonet/orleans.runtime.membership.adonetgatewaylistprovider/methods/getgateways-f8671e3e/)

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

## InitializeGatewayListProvider {#initializegatewaylistprovider-cf0334fd}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.adonet/orleans.runtime.membership.adonetgatewaylistprovider/methods/initializegatewaylistprovider-cf0334fd/)

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

```csharp
public Task InitializeGatewayListProvider()
```

Initializes the provider, will be called before all other methods.

### Returns

A `System.Threading.Tasks.Task` representing the work performed.
