You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Multi-target build to .NET Standard 2.1 and .NET 6, nuget updates
* Updated the sample app on how to use IOptionsSnapshot. Fixed VaultChangeWatcher dependency injection
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
VaultSharp.Extensions.Configuration is an extension to [VaultSharp](https://github.com/rajanadar/VaultSharp) that allows reading configuration options from Vault.
6
6
7
+
VaultSharp.Extensions.Configuration is a .NET Standard 2.1 and .NET 6.0 based cross-platform C# Library.
8
+
7
9
## Get Started
8
10
9
11
VaultSharp.Extensions.Configuration can be installed using the Nuget package manager or the dotnet CLI.
@@ -67,8 +69,10 @@ Keep in mind that your service should be registered as scoped or transient to re
67
69
Also `IOptionsSnapshot` can return empty value in some cases ([it's .net core bug](https://github.com/dotnet/runtime/issues/37860))
68
70
69
71
## Configuration using additional characters for a configuration path
72
+
70
73
This will be helpful when you want to flatten the structure of the secrets.
71
-
For example the following two secret objects will evaluate to the same configuration if for the second object the `additionalCharactersForConfigurationPath` option is used with `new []{'.'}` value:
74
+
For example the following two secret objects will evaluate to the same configuration if for the second object the `additionalCharactersForConfigurationPath` option is used with `new []{'.'}` value:
75
+
72
76
```json
73
77
{
74
78
"secrets":
@@ -80,6 +84,7 @@ For example the following two secret objects will evaluate to the same configura
80
84
}
81
85
}
82
86
```
87
+
83
88
```json
84
89
{
85
90
"secrets":
@@ -128,7 +133,7 @@ All parameters are grouped and arranged in folders and can be managed within the
128
133
129
134
There are two ways to create nested parameters.
130
135
131
-
1. Description of nesting directly in Json format:
136
+
1. Description of nesting directly in Json format (preferred approach):
0 commit comments