From 48e72672200bc0141dad307b7a97e5858c07c99e Mon Sep 17 00:00:00 2001 From: Yury Pliner Date: Thu, 29 Mar 2018 10:04:29 +0500 Subject: [PATCH] Fix #104 --- Consul/Agent.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Consul/Agent.cs b/Consul/Agent.cs index 0ea4673..e8945b9 100644 --- a/Consul/Agent.cs +++ b/Consul/Agent.cs @@ -142,6 +142,18 @@ public class AgentService public string Address { get; set; } public bool EnableTagOverride { get; set; } } + + /// + /// AgentMemberStatus is the state that a member is in + /// + public enum AgentMemberStatus + { + None = 0, + Alive, + Leaving, + Left, + Failed + } /// /// AgentMember represents a cluster member known to the agent @@ -152,7 +164,7 @@ public class AgentMember public string Addr { get; set; } public ushort Port { get; set; } public Dictionary Tags { get; set; } - public int Status { get; set; } + public AgentMemberStatus Status { get; set; } public byte ProtocolMin { get; set; } public byte ProtocolMax { get; set; } public byte ProtocolCur { get; set; }