Skip to content

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

CreateClusterClient(string, IConfiguration, Action<IHostBuilder>)

static
View source
public static IHost CreateClusterClient(string hostName, IConfiguration configuration, Action<IHostBuilder> postConfigureHostBuilder = null)
Creates the cluster client.

Parameters

hostNamestring
Name of the host.
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

The cluster client host.