Table of Contents

Class SpringBootConfigurationBuilderExtensions

Namespace
Steeltoe.Configuration.SpringBoot
Assembly
Steeltoe.Configuration.SpringBoot.dll
public static class SpringBootConfigurationBuilderExtensions
Inheritance
SpringBootConfigurationBuilderExtensions
Inherited Members

Methods

AddSpringBootFromCommandLine(IConfigurationBuilder, string[])

Adds a configuration source to the ConfigurationBuilder that reads from the command-line and expands the child keys found within. Any '.' delimiters in configuration keys are converted to ':', which is the separator used by .NET.

public static IConfigurationBuilder AddSpringBootFromCommandLine(this IConfigurationBuilder builder, string[] args)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

args string[]

The command-line arguments. Use

System.Environment.GetCommandLineArgs().Skip(1).ToArray()

if unavailable.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.

AddSpringBootFromCommandLine(IConfigurationBuilder, string[], ILoggerFactory)

Adds a configuration source to the ConfigurationBuilder that reads from the command-line and expands the child keys found within. Any '.' delimiters in configuration keys are converted to ':', which is the separator used by .NET.

public static IConfigurationBuilder AddSpringBootFromCommandLine(this IConfigurationBuilder builder, string[] args, ILoggerFactory loggerFactory)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

args string[]

The command-line arguments. Use

System.Environment.GetCommandLineArgs().Skip(1).ToArray()

if unavailable.

loggerFactory ILoggerFactory

Used for internal logging. Pass Instance to disable logging.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.

AddSpringBootFromEnvironmentVariable(IConfigurationBuilder)

Adds a configuration source to the ConfigurationBuilder that reads JSON from the SPRING_BOOT_APPLICATION environment variable and expands the child keys found within. Any '.' delimiters in configuration keys are converted to ':', which is the separator used by .NET.

public static IConfigurationBuilder AddSpringBootFromEnvironmentVariable(this IConfigurationBuilder builder)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.

AddSpringBootFromEnvironmentVariable(IConfigurationBuilder, ILoggerFactory)

Adds a configuration source to the ConfigurationBuilder that reads JSON from the SPRING_BOOT_APPLICATION environment variable and expands the child keys found within. Any '.' delimiters in configuration keys are converted to ':', which is the separator used by .NET.

public static IConfigurationBuilder AddSpringBootFromEnvironmentVariable(this IConfigurationBuilder builder, ILoggerFactory loggerFactory)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

loggerFactory ILoggerFactory

Used for internal logging. Pass Instance to disable logging.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.