Skip to content

TestClusterHostFactory.CreateSiloHost(string, IConfiguration, Action<IHostBuilder>)

CreateSiloHost(string, IConfiguration, Action<IHostBuilder>)

static
View source
public static IHost CreateSiloHost(string hostName, IConfiguration configuration, Action<IHostBuilder> postConfigureHostBuilder = null)
Creates an returns a new silo.

Parameters

hostNamestring
The silo name if it is not already specified in the configuration.
configurationIConfiguration
The configuration.
postConfigureHostBuilderAction<IHostBuilder>
An optional delegate which can be used to configure the host builder just prior to a host being built.

Returns

A new silo.