# ZooKeeperGatewayListProvider.InitializeGatewayListProviderAsync(CancellationToken)

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

[Source](https://github.com/dotnet/orleans/blob/997f2589e814db85c6a451b59c081c88e50b8944/src/Orleans.Clustering.ZooKeeper/ZooKeeperGatewayListProvider.cs#L83-L84)

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