Etcd.Microsoft.Extensions.Configuration
2.0.0
See the version list below for details.
dotnet add package Etcd.Microsoft.Extensions.Configuration --version 2.0.0
NuGet\Install-Package Etcd.Microsoft.Extensions.Configuration -Version 2.0.0
<PackageReference Include="Etcd.Microsoft.Extensions.Configuration" Version="2.0.0" />
paket add Etcd.Microsoft.Extensions.Configuration --version 2.0.0
#r "nuget: Etcd.Microsoft.Extensions.Configuration, 2.0.0"
// Install Etcd.Microsoft.Extensions.Configuration as a Cake Addin #addin nuget:?package=Etcd.Microsoft.Extensions.Configuration&version=2.0.0 // Install Etcd.Microsoft.Extensions.Configuration as a Cake Tool #tool nuget:?package=Etcd.Microsoft.Extensions.Configuration&version=2.0.0
Etcd.Microsoft.Extensions.Configuration
Etcd based configuration provider for Microsoft.Extensions.Configuration.
Quick start
HTTP
var config = new ConfigurationBuilder()
.AddEtcd(
new Credentials("MyEtcdUserName", "passw"),
new EtcdSettings("http://serveraddress:2379"))
.Build();
var mySection = config.GetSection("MySection");
var myKeyValue = mySection["MyKeyName"];
HTTPS
When using HTTPS, *.crt CA certificate (should be provided by etcd administrator) should be placed in well known system certificate store (depending on OS).
- For Windows it is
Trusted Root Certification Authority
. - For Linux, at least for Arch/Manjaro Linux it should be placed in :
/etc/ca-certificates/trust-source/anchors/
followed bysudo trust extract-compat
command
HTTPS with settings from local JSON file
appsettings.json
{
"EtcdSettings":
{
"ConnectionString": "https://serveraddress:2379"
}
}
var jsonConfig = new ConfigurationBuilder()
.AddJsonFile("appsettings.json")
.Build();
var config = new ConfigurationBuilder()
.AddEtcd(
new Credentials("MyEtcdUserName", "passw"),
new ConfigurationBasedEtcdSettings(jsonConfig))
.Build();
var mySection = config.GetSection("MySection");
var myKeyValue = mySection["MyKeyName"];
Settings can be mixed from different locations.
Contributing
There are many ways in which you can participate in the project. Like most open-source software projects, contributing code is just one of many outlets where you can help improve. Some of the things that you could help out with are:
- Documentation (both code and features)
- Bug reports
- Bug fixes
- Feature requests
- Feature implementations
- Test coverage
- Code quality
- Sample applications
License
Licensed under the GNU LESSER GENERAL PUBLIC LICENSE
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- dotnet-etcd (>= 5.2.0)
- Microsoft.Extensions.Configuration (>= 6.0.1)
-
net6.0
- dotnet-etcd (>= 5.2.0)
- Microsoft.Extensions.Configuration (>= 6.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.1.0 | 126 | 5/23/2024 |
2.0.1 | 405 | 12/2/2022 |
2.0.0 | 455 | 6/4/2022 |
1.0.4 | 366 | 12/2/2022 |
1.0.3 | 599 | 6/1/2022 |
1.0.2 | 435 | 5/29/2022 |
1.0.1 | 460 | 11/15/2021 |
1.0.0 | 470 | 10/26/2021 |
1.0.0-pre02 | 243 | 10/22/2021 |
1.0.0-pre01 | 272 | 10/22/2021 |