Consul
Installation
dotnet add package Structr.Configuration.ConsulSetup
public class SmtpEmailSettings
{
public string Host { get; set; }
public int Port { get; set; }
}services.AddConfiguration()
.AddConsul<SmtpEmailSettings>("consul_key", new ConsulClient(options => {
options.Address = new Uri("http://localhost:8500"); // Base URL to Consul KV store.
}));Last updated