-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AddFileConfigurationSourceOptions, AddFileConfigurationSourceOpti…
…onsBuilder; addFile configuration override secrets.json
- Loading branch information
Showing
6 changed files
with
90 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/NetLah.Extensions.Configuration/AddFileConfigurationSourceOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Microsoft.Extensions.Configuration; | ||
|
||
namespace NetLah.Extensions.Configuration; | ||
|
||
public class AddFileConfigurationSourceOptions | ||
{ | ||
public AddFileConfigurationSourceOptions(IConfigurationSection configurationSection) | ||
{ | ||
ConfigurationSection = configurationSection; | ||
} | ||
|
||
public IConfigurationSection ConfigurationSection { get; set; } | ||
|
||
public bool? ThrowIfNotSupport { get; set; } | ||
} |
13 changes: 13 additions & 0 deletions
13
src/NetLah.Extensions.Configuration/AddFileConfigurationSourceOptionsBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace NetLah.Extensions.Configuration; | ||
|
||
public class AddFileConfigurationSourceOptionsBuilder | ||
{ | ||
public AddFileConfigurationSourceOptionsBuilder(string sectionKey) | ||
{ | ||
SectionKey = sectionKey; | ||
} | ||
|
||
public string SectionKey { get; } | ||
|
||
public bool? ThrowIfNotSupport { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters