AddHazelcastAndDefaults Method
AddHazelcastAndDefaults(IConfigurationBuilder, string[], IDictionary<string, string>, IEnumerable<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, string, string, string)
Configures an IConfigurationBuilder to read default and Hazelcast configuration values from various sources.
Declaration
public static IConfigurationBuilder AddHazelcastAndDefaults(this IConfigurationBuilder configurationBuilder, string[] args, IDictionary<string, string> switchMappings = null, IEnumerable<KeyValuePair<string, string>> defaults = null, 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. |
IDictionary<string, string> | switchMappings | Command line switch mappings. |
IEnumerable<KeyValuePair<string, string>> | defaults | The defaults key-value configuration pairs. |
IEnumerable<KeyValuePair<string, string>> | keyValues | The optional key-value configuration pairs. |
string | optionsFilePath | The optional path to the options file. |
string | optionsFileName | The optional name of the options file. |
string | environmentName | An optional environment name. |
Returns
IConfigurationBuilder |
Remarks
Adds support for default and hazelcast-specific 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
.