ConsulRx.Configuration
1.2.0-beta02
See the version list below for details.
dotnet add package ConsulRx.Configuration --version 1.2.0-beta02
NuGet\Install-Package ConsulRx.Configuration -Version 1.2.0-beta02
<PackageReference Include="ConsulRx.Configuration" Version="1.2.0-beta02" />
paket add ConsulRx.Configuration --version 1.2.0-beta02
#r "nuget: ConsulRx.Configuration, 1.2.0-beta02"
// Install ConsulRx.Configuration as a Cake Addin #addin nuget:?package=ConsulRx.Configuration&version=1.2.0-beta02&prerelease // Install ConsulRx.Configuration as a Cake Tool #tool nuget:?package=ConsulRx.Configuration&version=1.2.0-beta02&prerelease
ConsulRx
A set of libraries for interacting with Hashicorp's Consul from .NET. These libraries leverage the Reactive Extensions to allow you to consume Consul values as a stream so your application can react to changes very quickly.
ConsulRx.Configuration
Provides the ability to add config values into the Microsoft.Extensions.Configuration
framework from Consul's KV Store and Service Catalog.
Getting started
In your Startup.cs
(or equivilent bootstrapping file where you build your configuration):
Configuration = new ConfigurationBuilder()
.AddConsul(c =>
c.Endpoint("http://myconsulserver:8500") //defaults to localhost if you omit
.MapHttpService("mywidgetservice", "serviceEndpoints:widget") //maps the address of the consul service mywidgetservice to the serviceEndpoints:widget config key in IConfiguration
.MapKeyPrefix("apps/myapp", "consul") //recursively maps all keys underneath apps/myapp to live in equivilent structure under the consul section in IConfiguration
.MapKey("shared/key1", "key1")
);
ConsulRx.Templating
Similar to Hashicorp's consul-template but in .NET using Razor templates. Why? consul-template is a popular, capable and reliable solution for generating templates from consul values. Why write an alternative in .NET? After using consul-template in several production projects, I have been frustrated by the lack of flexibility of the go templates. In my experience, when trying to do anything somewhat complex, the templates become very hard to read and understand. This project is an experiment to see if I can get similar functionality as consul-template in .NET with a much more flexible templating language of Razor that is easier to write and understand.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. 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.0
- ConsulRx (>= 1.2.0-beta02)
- Microsoft.Extensions.Configuration (>= 2.0.2)
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 |
---|---|---|
1.2.0-beta03 | 135 | 9/20/2023 |
1.2.0-beta02 | 160 | 10/10/2022 |
1.2.0-beta01 | 174 | 10/10/2022 |
1.1.0 | 3,054 | 3/29/2022 |
1.1.0-beta02 | 194 | 3/16/2022 |
1.1.0-beta01 | 362 | 9/21/2020 |
1.0.3 | 1,481 | 12/3/2019 |
1.0.3-beta02 | 592 | 4/22/2019 |
1.0.3-beta01 | 627 | 11/10/2018 |
1.0.2 | 6,290 | 9/11/2018 |
1.0.2-beta03 | 711 | 9/11/2018 |
1.0.1 | 1,172 | 9/6/2018 |
1.0.0 | 5,383 | 3/12/2018 |
1.0.0-rc5 | 1,083 | 2/1/2018 |
1.0.0-rc4 | 855 | 1/11/2018 |
1.0.0-rc3 | 900 | 1/9/2018 |
1.0.0-rc2 | 933 | 12/20/2017 |
1.0.0-rc1 | 846 | 10/30/2017 |
1.0.0-beta06 | 761 | 9/28/2017 |
1.0.0-beta05 | 795 | 9/28/2017 |
1.0.0-beta04 | 721 | 9/25/2017 |
1.0.0-beta03 | 805 | 6/2/2017 |
1.0.0-beta02 | 879 | 6/1/2017 |
1.0.0-beta01 | 839 | 5/28/2017 |
# ConsulRx
- Start targeting netstandard2.0
- Expose metadata on ServiceNode
# ConsulRx.Templating
- New package available for executing templates with consul data