Skip to main content

Class Status

Namespace: Consul
Assembly: Consul.dll

public class Status : IStatusEndpoint

Inheritance

objectStatus

Implements

IStatusEndpoint

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

ct CancellationToken

Returns

Task <string >

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

ct CancellationToken

Returns

Task <string []>

A write result containing the list of Raft peers

  • Methods
    • Leader(CancellationToken)
    • Peers(CancellationToken)