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
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
argsstring[]The command-line arguments. Use
System.Environment.GetCommandLineArgs().Skip(1).ToArray()if unavailable.
Returns
- IConfigurationBuilder
The incoming
builderso 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
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
argsstring[]The command-line arguments. Use
System.Environment.GetCommandLineArgs().Skip(1).ToArray()if unavailable.
loggerFactoryILoggerFactoryUsed for internal logging. Pass Instance to disable logging.
Returns
- IConfigurationBuilder
The incoming
builderso 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
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
Returns
- IConfigurationBuilder
The incoming
builderso 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
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
loggerFactoryILoggerFactoryUsed for internal logging. Pass Instance to disable logging.
Returns
- IConfigurationBuilder
The incoming
builderso that additional calls can be chained.