# ConsulGatewayListProvider.GetGatewaysAsync(CancellationToken)

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

[Source](https://github.com/dotnet/orleans/blob/997f2589e814db85c6a451b59c081c88e50b8944/src/Orleans.Clustering.Consul/ConsulGatewayListProvider.cs#L74-L85)

```csharp
public Task<IList<Uri>> GetGatewaysAsync(CancellationToken cancellationToken = default(CancellationToken))
```

Gets the gateway endpoints which clients can use to connect to the cluster.

### Parameters

- `cancellationToken` (`CancellationToken`): The token used to cancel gateway discovery.

### Returns

The list of gateway endpoints.
