Class CommandLineConfigurationExtensions
- Namespace
- Acuit.Pinpoint.Configuration
- Assembly
- Acuit.Pinpoint.Configuration.dll
Extension methods for registering CommandLineConfigurationProvider with IConfigurationBuilder.
public static class CommandLineConfigurationExtensions
- Inheritance
-
CommandLineConfigurationExtensions
- Inherited Members
Methods
AddCommandLine(IConfigurationBuilder, Action<CommandLineConfigurationSource>)
Adds an IConfigurationProvider that reads configuration values from the command line.
public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder builder, Action<CommandLineConfigurationSource> configureSource)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add to.
configureSourceAction<CommandLineConfigurationSource>Configures the source.
Returns
AddCommandLine(IConfigurationBuilder, string[])
Adds an IConfigurationProvider that reads configuration values from the command line.
public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder configurationBuilder, string[] args)
Parameters
configurationBuilderIConfigurationBuilderThe IConfigurationBuilder to add to.
argsstring[]The command line args.
Returns
AddCommandLine(IConfigurationBuilder, string[], IDictionary<string, string>)
Adds an IConfigurationProvider that reads configuration values from the command line using the specified switch mappings.
public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder configurationBuilder, string[] args, IDictionary<string, string> switchMappings)
Parameters
configurationBuilderIConfigurationBuilderThe IConfigurationBuilder to add to.
argsstring[]The command line args.
switchMappingsIDictionary<string, string>The switch mappings.