mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-30 18:52:50 +08:00
21 lines
702 B
C#
21 lines
702 B
C#
namespace Ocelot.Provider.Consul
|
|
{
|
|
public class ConsulRegistryConfiguration
|
|
{
|
|
public ConsulRegistryConfiguration(string scheme, string host, int port, string keyOfServiceInConsul, string token)
|
|
{
|
|
Host = string.IsNullOrEmpty(host) ? "localhost" : host;
|
|
Port = port > 0 ? port : 8500;
|
|
Scheme = string.IsNullOrEmpty(scheme) ? "http" : scheme;
|
|
KeyOfServiceInConsul = keyOfServiceInConsul;
|
|
Token = token;
|
|
}
|
|
|
|
public string KeyOfServiceInConsul { get; }
|
|
public string Scheme { get; }
|
|
public string Host { get; }
|
|
public int Port { get; }
|
|
public string Token { get; }
|
|
}
|
|
}
|