.NET Client Documentation
5.5.0
Search Results for

    Show / Hide Table of Contents

    AddHazelcast Method

    AddHazelcast(IConfigurationBuilder, string[], IDictionary<string, string>, IEnumerable<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, string, string, string)

    Configures an IConfigurationBuilder to read Hazelcast configuration values from various sources.

    Declaration
    public static IConfigurationBuilder AddHazelcast(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

    The 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.

    In this article
    Back to top Copyright © 2010-2024 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.