AddHazelcast Method
AddHazelcast(IConfigurationBuilder, String[], IEnumerable<KeyValuePair<String, String>>, String, String, String)
Adds an IConfigurationProvider that reads Hazelcast configuration values from various sources.
Declaration
public static IConfigurationBuilder AddHazelcast(this IConfigurationBuilder configurationBuilder, string[] args, IEnumerable<KeyValuePair<string, string>> keyValues = null, string optionsFilePath = null, string optionsFileName = null, string environmentName = null)
Parameters
IConfigurationBuilder | configurationBuilder | The IConfigurationBuilder to add to. |
String[] | args | The command line args. |
IEnumerable<KeyValuePair<String, String>> | keyValues | The optional key-value configuration pairs. |
String | optionsFilePath | The optional path to the options file. |
String | optionsFileName | |
String | environmentName | An optional environment name. |
Returns
IConfigurationBuilder |
Remarks
Adds support for hazelcast-specific sources. Does not add default support for other sources.
If environmentName
is missing, the environment name is determined using
the DOTNET_ENVIRONMENT
and ASPNETCORE_ENVIRONMENT
environment variables. If not
specified, the environment name is Production
.