TestClusterBuilder
class
Namespace: Orleans.TestingHost
Configuration builder for starting a
TestCluster.public class TestClusterBuilderConstructors
TestClusterBuilderInitializes a new instance ofTestClusterBuilderusing the default options.TestClusterBuilder(short)Initializes a new instance ofTestClusterBuilderoverriding the initial silos count.
Properties
CreateSiloAsyncGets or sets the delegate used to create and start an individual silo.OptionsGets the options.PortAllocatorGets or sets the port allocator used to allocate consecutive silo ports.PropertiesConfiguration values which will be provided to the silos and clients created by this builder.
Methods
AddClientBuilderConfiguratorAdds an implementation ofIClientBuilderConfiguratororIHostConfiguratorto configure the client created for the test clusterAddSiloBuilderConfiguratorAdds an implementation ofISiloConfiguratororIHostConfiguratorto configure silos created by the test cluster.BuildBuilds this instance.ConfigureBuilder(Action)Adds a configuration delegate to the builderConfigureHostConfiguration(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.CreateClusterIdCreates a cluster identifier.
