Skip to main content

Class DiscoveryChain

Namespace: Consul
Assembly: Consul.dll

public class DiscoveryChain : IDiscoveryChainEndpoint

Inheritance

objectDiscoveryChain

Implements

IDiscoveryChainEndpoint

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

string

DiscoveryGraphNodeTypeRouter

public const string DiscoveryGraphNodeTypeRouter = "router"

Field Value

string

DiscoveryGraphNodeTypeSplitter

public const string DiscoveryGraphNodeTypeSplitter = "splitter"

Field Value

string

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

q QueryOptions

Query Options

ct CancellationToken

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

ct CancellationToken

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

ct CancellationToken

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

q WriteOptions

Write Options

compileDataCenter string

Datacenter to evaluate the discovery chain in

ct CancellationToken

Cancellation Token

Returns

Task <WriteResult <DiscoveryChainResponse >>

An empty write result

  • Fields
    • DiscoveryGraphNodeTypeResolver
    • DiscoveryGraphNodeTypeRouter
    • DiscoveryGraphNodeTypeSplitter
  • Methods
    • Get(string, QueryOptions, CancellationToken)
    • Get(string, CancellationToken)
    • Get(string, DiscoveryChainOptions, string, CancellationToken)
    • Get(string, DiscoveryChainOptions, WriteOptions, string, CancellationToken)