diff --git a/src/Config/ChainedBuilderExtensions.cs b/src/Config/ChainedBuilderExtensions.cs
new file mode 100644
index 0000000..6a2630b
--- /dev/null
+++ b/src/Config/ChainedBuilderExtensions.cs
@@ -0,0 +1,35 @@
+// Copyright (c) .NET Foundation. All rights reserved.
+// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
+
+using System;
+using System.Collections.Generic;
+
+namespace Microsoft.Extensions.Configuration
+{
+ ///
+ /// IConfigurationBuilder extension methods for the chaind configuration provider.
+ ///
+ public static class ChainedBuilderExtensions
+ {
+ ///
+ /// Adds an existing configuration to .
+ ///
+ /// The to add to.
+ /// The to add.
+ /// The .
+ public static IConfigurationBuilder AddConfiguration(this IConfigurationBuilder configurationBuilder, IConfiguration config)
+ {
+ if (configurationBuilder == null)
+ {
+ throw new ArgumentNullException(nameof(configurationBuilder));
+ }
+ if (config == null)
+ {
+ throw new ArgumentNullException(nameof(config));
+ }
+
+ configurationBuilder.Add(new ChainedConfigurationSource { Configuration = config });
+ return configurationBuilder;
+ }
+ }
+}
diff --git a/src/Config/ChainedConfigurationSource.cs b/src/Config/ChainedConfigurationSource.cs
index d95c960..1a1983c 100644
--- a/src/Config/ChainedConfigurationSource.cs
+++ b/src/Config/ChainedConfigurationSource.cs
@@ -19,8 +19,6 @@ namespace Microsoft.Extensions.Configuration
/// The .
/// A
public IConfigurationProvider Build(IConfigurationBuilder builder)
- {
- return new ChainedConfigurationProvider(this);
- }
+ => new ChainedConfigurationProvider(this);
}
}
diff --git a/src/Config/ConfigurationBuilderExtensions.cs b/src/Config/MemoryConfigurationBuilderExtensions.cs
similarity index 65%
rename from src/Config/ConfigurationBuilderExtensions.cs
rename to src/Config/MemoryConfigurationBuilderExtensions.cs
index 18cbfaf..00565bc 100644
--- a/src/Config/ConfigurationBuilderExtensions.cs
+++ b/src/Config/MemoryConfigurationBuilderExtensions.cs
@@ -8,31 +8,10 @@ using Microsoft.Extensions.Configuration.Memory;
namespace Microsoft.Extensions.Configuration
{
///
- /// IConfigurationBuilder extension methods.
+ /// IConfigurationBuilder extension methods for the MemoryConfigurationProvider.
///
- public static class ConfigurationBuilderExtensions
+ public static class MemoryConfigurationBuilderExtensions
{
- ///
- /// Adds an existing configuration to .
- ///
- /// The to add to.
- /// The to add.
- /// The .
- public static IConfigurationBuilder AddConfiguration(this IConfigurationBuilder configurationBuilder, IConfiguration config)
- {
- if (configurationBuilder == null)
- {
- throw new ArgumentNullException(nameof(configurationBuilder));
- }
- if (config == null)
- {
- throw new ArgumentNullException(nameof(config));
- }
-
- configurationBuilder.Add(new ChainedConfigurationSource { Configuration = config });
- return configurationBuilder;
- }
-
///
/// Adds the memory configuration provider to .
///
@@ -68,4 +47,4 @@ namespace Microsoft.Extensions.Configuration
return configurationBuilder;
}
}
-}
+}
\ No newline at end of file