Skip to content

TestCluster Properties

A host class for local testing with Orleans using in-process silos. Runs a Primary and optionally secondary silos in separate app domains, and client in the main app domain. Additional silos can also be started in-process on demand if required for particular test cases.

Client

get
View source
public IClusterClient Client
The client.

Exceptions

System.InvalidOperationException
The cluster has not been deployed or the client has been stopped.

ConfigurationSources

get
View source
public IReadOnlyList<IConfigurationSource> ConfigurationSources
Gets the configuration sources.

Property value

The configuration sources.

CreateSiloAsync

set
View source
public Func<string, IConfiguration, Task<SiloHandle>> CreateSiloAsync
Delegate used to create and start an individual silo.

GrainFactory

get
View source
public IGrainFactory GrainFactory
GrainFactory to use in the tests

Exceptions

System.InvalidOperationException
The cluster has not been deployed or the client has been stopped.

Options

get
View source
public TestClusterOptions Options
Options used to configure the test cluster.

Silos

get
View source
public ReadOnlyCollection<SiloHandle> Silos
Collection of all known silos.