# InProcessTestCluster.InitializeClientAsync(CancellationToken)

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

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

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

Initialize the grain client.

### Parameters

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