# TestCluster Properties

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

## Client {#client-f2816cbb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/properties/client-f2816cbb/)

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

```csharp
public IClusterClient Client
```

The client.

## ConfigurationSources {#configurationsources-236bb66b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/properties/configurationsources-236bb66b/)

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

```csharp
public IReadOnlyList<IConfigurationSource> ConfigurationSources
```

Gets the configuration sources.

### Value

The configuration sources.

## CreateSiloAsync {#createsiloasync-1672850b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/properties/createsiloasync-1672850b/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestCluster.cs)

```csharp
public Func<string, IConfiguration, Task<SiloHandle>> CreateSiloAsync
```

Delegate used to create and start an individual silo.

## GrainFactory {#grainfactory-37f734cb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/properties/grainfactory-37f734cb/)

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

```csharp
public IGrainFactory GrainFactory
```

GrainFactory to use in the tests

## Options {#options-82bfa5fe}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/properties/options-82bfa5fe/)

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

```csharp
public TestClusterOptions Options
```

Options used to configure the test cluster.

## PortAllocator {#portallocator-3d6bf44d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/properties/portallocator-3d6bf44d/)

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

```csharp
public ITestClusterPortAllocator PortAllocator
```

The port allocator.

## Primary {#primary-2ac40f05}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/properties/primary-2ac40f05/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestCluster.cs)

```csharp
public SiloHandle Primary
```

Primary silo handle, if applicable.

## SecondarySilos {#secondarysilos-160253ca}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/properties/secondarysilos-160253ca/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestCluster.cs#L60-L64)

```csharp
public IReadOnlyList<SiloHandle> SecondarySilos
```

List of handles to the secondary silos.

## ServiceProvider {#serviceprovider-b8be68d1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/properties/serviceprovider-b8be68d1/)

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

```csharp
public IServiceProvider ServiceProvider
```

Client-side `System.IServiceProvider` to use in the tests.

## Silos {#silos-48e611e3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/properties/silos-48e611e3/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestCluster.cs#L74-L85)

```csharp
public ReadOnlyCollection<SiloHandle> Silos
```

Collection of all known silos.
