Skip to content

TestClusterBuilder Methods

Configuration builder for starting a TestCluster.

Build

View source
public TestCluster Build()
Builds this instance.

Returns

TestCluster.

ConfigureBuilder(Action)

View source
public TestClusterBuilder ConfigureBuilder(Action configureDelegate)
Adds a configuration delegate to the builder

Parameters

configureDelegateAction
The configuration delegate.

ConfigureHostConfiguration(Action<IConfigurationBuilder>)

View source
public TestClusterBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate)
Set up the configuration for the builder itself. This will be used as a base to initialize each silo host for use later in the build process. This can be called multiple times and the results will be additive.

Parameters

configureDelegateAction<IConfigurationBuilder>
The delegate for configuring the Microsoft.Extensions.Configuration.IConfigurationBuilder that will be used to construct the Microsoft.Extensions.Configuration.IConfiguration for the host.

Returns

The same instance of the host builder for chaining.

CreateClusterId

static
View source
public static string CreateClusterId()
Creates a cluster identifier.

Returns

A new cluster identifier.