Skip to content

TestClusterExtensions Methods

Extension methods for test clusters.

GetConfiguration(IHostBuilder)

staticextension
View source
public static IConfiguration GetConfiguration(this IHostBuilder builder)
Gets the configuration from the specified host builder.

Parameters

builderIHostBuilder
The builder.

GetConfigurationValue(IHostBuilder, string)

staticextension
View source
public static string GetConfigurationValue(this IHostBuilder hostBuilder, string key)
Gets a configuration value.

Parameters

hostBuilderIHostBuilder
The host builder.
keystring
The key.

Returns

The configuration value.

GetTestClusterOptions(IConfiguration)

staticextension
View source
public static TestClusterOptions GetTestClusterOptions(this IConfiguration config)
Gets the test cluster options.

Parameters

configIConfiguration
The configuration.

Returns

The test cluster options.

GetTestClusterOptions(IHostBuilder)

staticextension
View source
public static TestClusterOptions GetTestClusterOptions(this IHostBuilder hostBuilder)
Gets the test cluster options.

Parameters

hostBuilderIHostBuilder
The host builder.

Returns

The test cluster options.