Class DiscoveryChain
Namespace: Consul
Assembly: Consul.dll
public class DiscoveryChain : IDiscoveryChainEndpoint
Inheritance
Implements
Inherited Members
object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()
Fields
DiscoveryGraphNodeTypeResolver
public const string DiscoveryGraphNodeTypeResolver = "resolver"
Field Value
DiscoveryGraphNodeTypeRouter
public const string DiscoveryGraphNodeTypeRouter = "router"
Field Value
DiscoveryGraphNodeTypeSplitter
public const string DiscoveryGraphNodeTypeSplitter = "splitter"
Field Value
Methods
Get(string, QueryOptions, CancellationToken)
Get is used to return the compiled discovery chain for a service.
public Task<QueryResult<DiscoveryChainResponse>> Get(string name, QueryOptions q, CancellationToken ct = default)
Parameters
name
string
Specifies the service to query when compiling the discovery chain
Query Options
Cancellation Token
Returns
Task <QueryResult <DiscoveryChainResponse >>
An empty write result
Get(string, CancellationToken)
Get is used to return the compiled discovery chain for a service.
public Task<QueryResult<DiscoveryChainResponse>> Get(string name, CancellationToken ct = default)
Parameters
name
string
Specifies the service to query when compiling the discovery chain
Cancellation Token
Returns
Task <QueryResult <DiscoveryChainResponse >>
An empty write result
Get(string, DiscoveryChainOptions, string, CancellationToken)
Get is used to return the compiled discovery chain for a service.
public Task<WriteResult<DiscoveryChainResponse>> Get(string name, DiscoveryChainOptions options, string compileDataCenter = null, CancellationToken ct = default)
Parameters
name
string
Name of the service
options
DiscoveryChainOptions
Discovery Chain Options
compileDataCenter
string
Datacenter to evaluate the discovery chain in
Cancellation Token
Returns
Task <WriteResult <DiscoveryChainResponse >>
An empty write result
Get(string, DiscoveryChainOptions, WriteOptions, string, CancellationToken)
Get is used to return the compiled discovery chain for a service.
public Task<WriteResult<DiscoveryChainResponse>> Get(string name, DiscoveryChainOptions options, WriteOptions q, string compileDataCenter = null, CancellationToken ct = default)
Parameters
name
string
Name of the service
options
DiscoveryChainOptions
Discovery Chain Options
Write Options
compileDataCenter
string
Datacenter to evaluate the discovery chain in
Cancellation Token
Returns
Task <WriteResult <DiscoveryChainResponse >>
An empty write result