Browse Source
Merge pull request #3435 from abpframework/maliming/BuildConfiguration
Add builderAction parameter to the BuildConfiguration method.
pull/3475/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
framework/src/Volo.Abp.Core/Microsoft/Extensions/Configuration/ConfigurationHelper.cs
|
|
@ -6,7 +6,8 @@ namespace Microsoft.Extensions.Configuration |
|
|
public static class ConfigurationHelper |
|
|
public static class ConfigurationHelper |
|
|
{ |
|
|
{ |
|
|
public static IConfigurationRoot BuildConfiguration( |
|
|
public static IConfigurationRoot BuildConfiguration( |
|
|
AbpConfigurationBuilderOptions options = null) |
|
|
AbpConfigurationBuilderOptions options = null, |
|
|
|
|
|
Action<IConfigurationBuilder> builderAction = null) |
|
|
{ |
|
|
{ |
|
|
options = options ?? new AbpConfigurationBuilderOptions(); |
|
|
options = options ?? new AbpConfigurationBuilderOptions(); |
|
|
|
|
|
|
|
|
@ -43,6 +44,8 @@ namespace Microsoft.Extensions.Configuration |
|
|
builder = builder.AddCommandLine(options.CommandLineArgs); |
|
|
builder = builder.AddCommandLine(options.CommandLineArgs); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
builderAction?.Invoke(builder); |
|
|
|
|
|
|
|
|
return builder.Build(); |
|
|
return builder.Build(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|