Skip to content

TestCluster.StartSiloAsync(int, TestClusterOptions, IReadOnlyList<IConfigurationSource>, bool, CancellationToken)

StartSiloAsync(int, TestClusterOptions, IReadOnlyList<IConfigurationSource>, bool, CancellationToken)

View source
public Task<SiloHandle> StartSiloAsync(int instanceNumber, TestClusterOptions clusterOptions, IReadOnlyList<IConfigurationSource>? configurationOverrides, bool startSiloOnNewPort, CancellationToken cancellationToken)
Starts a new silo.

Parameters

instanceNumberint
The instance number to deploy.
clusterOptionsTestClusterOptions
The options to use.
configurationOverridesIReadOnlyList<IConfigurationSource>
Configuration overrides.
startSiloOnNewPortbool
Whether to start this silo on a new port.
cancellationTokenCancellationToken
The token used to cancel silo startup.

Returns

A handle to the deployed silo.