Class Status
Namespace: Consul
Assembly: Consul.dll
public class Status : IStatusEndpoint
Inheritance
Implements
Inherited Members
object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()
Methods
Leader(CancellationToken)
Leader is used to query for a known leader
public Task<string> Leader(CancellationToken ct = default)
Parameters
Returns
A write result containing the leader node name
Peers(CancellationToken)
Peers is used to query for a known raft peers
public Task<string[]> Peers(CancellationToken ct = default)
Parameters
Returns
A write result containing the list of Raft peers