Build Method
Build Hazelcast options.
Build(String[], IEnumerable<KeyValuePair<String, String>>, String, String, String, Action<IConfiguration, HazelcastOptions>)
Builds Hazelcast options.
Declaration
public static HazelcastOptions Build(string[] args = null, IEnumerable<KeyValuePair<string, string>> keyValues = null, string optionsFilePath = null, string optionsFileName = null, string environmentName = null, Action<IConfiguration, HazelcastOptions> configure = null)
Parameters
String[] | args | Optional command-line arguments. |
IEnumerable<KeyValuePair<String, String>> | keyValues | Optional key-value pairs. |
String | optionsFilePath | Optional options file path (without filename). |
String | optionsFileName | Optional options file name (without path, with extension). |
String | environmentName | Optional environment name. |
Action<IConfiguration, HazelcastOptions> | configure | Optional HazelcastOptions configuration delegate. |
Returns
HazelcastOptions | Hazelcast options. |
Remarks
When optionsFilePath
is not provided, the options file is searched in the
default .NET configuration location, which usually is where the application resides.
When optionsFileName
is not provided, the name is "hazelcast".
When environmentName
is not provided, it is determined the standard .NET way,
i.e. from the DOTNET_ENVIRONMENT
and ASPNETCORE_ENVIRONMENT
variables and,
if not specified, defaults to "Production".