Table of Contents

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 IConfigurationBuilder

The IConfigurationBuilder to add to.

configureSource Action<CommandLineConfigurationSource>

Configures the source.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

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 IConfigurationBuilder

The IConfigurationBuilder to add to.

args string[]

The command line args.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

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 IConfigurationBuilder

The IConfigurationBuilder to add to.

args string[]

The command line args.

switchMappings IDictionary<string, string>

The switch mappings.

Returns

IConfigurationBuilder

The IConfigurationBuilder.