TestClusterBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configuration builder for starting a TestCluster.
public class TestClusterBuilder
type TestClusterBuilder = class
Public Class TestClusterBuilder
- Inheritance
-
TestClusterBuilder
Constructors
TestClusterBuilder() |
Initializes a new instance of TestClusterBuilder using the default options. |
TestClusterBuilder(Int16) |
Initializes a new instance of TestClusterBuilder overriding the initial silos count. |
Properties
CreateSiloAsync |
Gets or sets the delegate used to create and start an individual silo. |
Options |
Gets the options. |
PortAllocator |
Gets or sets the port allocator used to allocate consecutive silo ports. |
Properties |
Configuration values which will be provided to the silos and clients created by this builder. |
Methods
AddClientBuilderConfigurator<T>() |
Adds an implementation of IClientBuilderConfigurator or IHostConfigurator to configure the client created for the test cluster |
AddSiloBuilderConfigurator<T>() |
Adds an implementation of ISiloConfigurator or IHostConfigurator to configure silos created by the test cluster. |
Build() |
Builds this instance. |
ConfigureBuilder(Action) |
Adds a configuration delegate to the builder |
ConfigureHostConfiguration(Action<IConfigurationBuilder>) |
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. |
CreateClusterId() |
Creates a cluster identifier. |