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
builder
IConfigurationBuilderThe IConfigurationBuilder to add to.
configureSource
Action<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
configurationBuilder
IConfigurationBuilderThe IConfigurationBuilder to add to.
args
string[]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
configurationBuilder
IConfigurationBuilderThe IConfigurationBuilder to add to.
args
string[]The command line args.
switchMappings
IDictionary<string, string>The switch mappings.