# InProcessTestCluster

Package: [Microsoft.Orleans.TestingHost](/orleans/docs/api/csharp/microsoft.orleans.testinghost/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.TestingHost) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/InProcTestCluster.cs#L36)

```csharp
public sealed class InProcessTestCluster : IAsyncDisposable, IDisposable
```

A host class for local testing with Orleans using in-process silos.

## Constructors

- [InProcessTestCluster(InProcessTestClusterOptions, ITestClusterPortAllocator)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/constructors/constructor-orleans-testinghost-inprocesstestclusteroptions-orleans-testinghost-d50dd750/)

## Properties

- [Client](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/properties/client-0289a097/)
- [Options](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/properties/options-4f4afe76/)
- [PortAllocator](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/properties/portallocator-6fd3850f/)
- [Silos](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/properties/silos-7b5724f9/)

## Methods

- [CreateSiloAsync(InProcessTestSiloSpecificOptions)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/createsiloasync-orleans-testinghost-inprocesstestsilospecificoptions-3620f110/)
- [DeactivateAsync(GrainId)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/deactivateasync-orleans-runtime-grainid-2df6a46c/)
- [DeactivateAsync(IAddressable)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/deactivateasync-orleans-runtime-iaddressable-f071d424/)
- [DeployAsync](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/deployasync-40d7340d/)
- [Dispose](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/dispose-949a0b78/)
- [DisposeAsync](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/disposeasync-d1297dcc/)
- [GetActiveSilos](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/getactivesilos-15ff101b/)
- [GetLivenessStabilizationTime(ClusterMembershipOptions, bool)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/getlivenessstabilizationtime-orleans-configuration-clustermembershipoptions-bool-51e07d3a/)
- [GetLog](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/getlog-1b791700/)
- [GetSiloForAddress(SiloAddress)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/getsiloforaddress-orleans-runtime-siloaddress-27d5024b/)
- [GetSiloServiceProvider(SiloAddress)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/getsiloserviceprovider-orleans-runtime-siloaddress-80599dd1/)
- [InitializeClientAsync](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/initializeclientasync-79c83ebb/)
- [KillClientAsync](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/killclientasync-4f982fb1/)
- [KillSiloAsync(InProcessSiloHandle)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/killsiloasync-orleans-testinghost-inprocesssilohandle-de434785/)
- [MigrateAsync(GrainId, SiloAddress?)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/migrateasync-orleans-runtime-grainid-orleans-runtime-siloaddress-nullable-62c8a879/)
- [MigrateAsync(IAddressable, SiloAddress?)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/migrateasync-orleans-runtime-iaddressable-orleans-runtime-siloaddress-nullable-f920645b/)
- [RestartSiloAsync(InProcessSiloHandle)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/restartsiloasync-orleans-testinghost-inprocesssilohandle-32d78ea8/)
- [RestartStoppedSecondarySiloAsync(string)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/restartstoppedsecondarysiloasync-string-2594889b/)
- [StartAdditionalSilo](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/startadditionalsilo-020b1fea/)
- [StartAdditionalSilo(bool)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/startadditionalsilo-bool-dc8ed54e/)
- [StartAdditionalSiloAsync](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/startadditionalsiloasync-4d029b67/)
- [StartAdditionalSiloAsync(bool)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/startadditionalsiloasync-bool-b4edbe15/)
- [StartSiloAsync(int, InProcessTestClusterOptions)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/startsiloasync-int-orleans-testinghost-inprocesstestclusteroptions-d57d629b/)
- [StartSiloAsync(int, InProcessTestClusterOptions, IReadOnlyList&lt;IConfigurationSource&gt;, bool)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/startsiloasync-int-orleans-testinghost-inprocesstestclusteroptions-system-collec-f6245194/)
- [StartSiloAsync(InProcessTestCluster, int, InProcessTestClusterOptions)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/startsiloasync-orleans-testinghost-inprocesstestcluster-int-orleans-testinghost-217f4f65/)
- [StartSiloAsync(InProcessTestCluster, int, InProcessTestClusterOptions, IReadOnlyList&lt;IConfigurationSource&gt;, bool)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/startsiloasync-orleans-testinghost-inprocesstestcluster-int-orleans-testinghost-065cc76e/)
- [StartSilosAsync(int)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/startsilosasync-int-da724d53/)
- [StartSilosAsync(int, bool)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/startsilosasync-int-bool-84764165/)
- [StopAllSilos](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/stopallsilos-81f775a2/)
- [StopAllSilosAsync](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/stopallsilosasync-2e4aca91/)
- [StopClusterClientAsync](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/stopclusterclientasync-993d6245/)
- [StopSiloAsync(InProcessSiloHandle)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/stopsiloasync-orleans-testinghost-inprocesssilohandle-0464a879/)
- [StopSilosAsync](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/stopsilosasync-c4be92a8/)
- [TryGetGrainContext(GrainId, IGrainContext?)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/trygetgraincontext-orleans-runtime-grainid-out-orleans-runtime-igraincontext-nul-da6792ee/)
- [WaitForClusterManifestToStabilizeAsync(bool)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/waitforclustermanifesttostabilizeasync-bool-542ceb7c/)
- [WaitForDeactivationAsync(GrainId)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/waitfordeactivationasync-orleans-runtime-grainid-339870d3/)
- [WaitForDeactivationAsync(IAddressable)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/waitfordeactivationasync-orleans-runtime-iaddressable-0d3f51a1/)
- [WaitForLivenessToStabilizeAsync(bool)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/methods/waitforlivenesstostabilizeasync-bool-97cd87ec/)
