NuGet Package JorJika.Api.ServiceRegistry.Consul

Register your api with Consul service registry.

Use service discovery, key value store from consul and etc.

Usage =>

In "Startup.cs" file
In "ConfigureServices" Method add following line

services.AddConsulClient(Configuration);

//Configuration is ICounfiguration object mapped to json config file where exists consul config section.

In "Configure" Method add "IApplicationLifetime lifetime" as parameter and following line

app.UseConsul(lifetime);

Example Configuration section for consul (add in your appsettings.json or somwhere else):
"ConsulConfig": {
"Address": "http://127.0.0.1:8500",
"Token": "ConsulACLToken",
"ApiName": "YourServiceApi",
"Tags": [ "yourservicetag", "urlprefix-/yourservicetag strip=/yourservicetag" ]
}.

Info

Version: 1.0.8
Author(s): JorJika
Last Update: Friday, March 29, 2019
.NET Fiddle: Create the first Fiddle
Project Url: http://jorjika.net/
NuGet Url: https://www.nuget.org/packages/JorJika.Api.ServiceRegistry.Consul


Install
Install-Package JorJika.Api.ServiceRegistry.Consul
dotnet add package JorJika.Api.ServiceRegistry.Consul
paket add JorJika.Api.ServiceRegistry.Consul
JorJika.Api.ServiceRegistry.Consul Download (Unzip the "nupkg" after downloading)





STATS

must-have-score

1

avg-downloads-per-day

4

days-since-last-release

973