# TestCluster.InitializeClientAsync

[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/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestCluster.cs#L739-L808)

```csharp
public Task InitializeClientAsync()
```

Initialize the grain client. This should be already done by [TestCluster](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/) or [TestCluster](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/)
