# ConsulGatewayListProvider.InitializeGatewayListProviderAsync(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#L63-L65)

```csharp
public Task InitializeGatewayListProviderAsync(CancellationToken cancellationToken = default(CancellationToken))
```

Initializes the provider before gateway discovery begins.

### Parameters

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

### Returns

A task representing the initialization operation.
