# TestCluster.InitializeClientAsync(CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/methods/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.TestingHost/TestCluster.cs#L883)

```csharp
public Task InitializeClientAsync(CancellationToken cancellationToken)
```

Initialize the grain client.

### Parameters

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