public class ConsulOptions
{
//replace this
public string HostName { get; set; } = null!;
public int Port { get; set; }
//to this
public Uri Address { get; set; }
public bool RequireHttps { get; set; }
public bool RequireBasicAuthentication { get; set; }
public string? Username { get; set; }
public string? Password { get; set; }
}
or add ass alternative configuration option
Why is this needed:
To provide config like this:
cco.Address = new Uri(configuration["Consul:Host"]);
Now it's not useful
What would you like to be added:
or add ass alternative configuration option
Why is this needed: To provide config like this:
cco.Address = new Uri(configuration["Consul:Host"]);
Now it's not useful