Skip to main content

Class QueryResult<T>

Namespace: Consul
Assembly: Consul.dll

The result of a Consul API query

public class QueryResult<T> : QueryResult

Type Parameters​

T

Must be able to be deserialized from JSON

Inheritance​

object ← ConsulResult ← QueryResult ← QueryResult<T>

Inherited Members​

QueryResult.XCache , QueryResult.Age , QueryResult.LastIndex , QueryResult.LastContact , QueryResult.KnownLeader , QueryResult.AddressTranslationEnabled , ConsulResult.RequestTime , ConsulResult.StatusCode , object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

Constructors​

QueryResult()​

public QueryResult()

QueryResult(QueryResult)​

public QueryResult(QueryResult other)

Parameters​

other QueryResult

QueryResult(QueryResult, T)​

public QueryResult(QueryResult other, T value)

Parameters​

other QueryResult

value T

Properties​

Response​

The result of the query

public T Response { get; set; }

Property Value​

T