Skip to main content

Class ExportedServices

Namespace: Consul
Assembly: Consul.dll

public class ExportedServices : IExportedServicesEndpoint

Inheritance

objectExportedServices

Implements

IExportedServicesEndpoint

Inherited Members

object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

Methods

List(CancellationToken)

List of exported services, as well as the admin partitions and cluster peers that consume the services

public Task<QueryResult<ResolvedExportedService[]>> List(CancellationToken ct = default)

Parameters

ct CancellationToken

Cancellation token for long poll request. If set, OperationCanceledException will be thrown if the request is cancelled before completing

Returns

Task <QueryResult <ResolvedExportedService []>>

A query result containing an array of exported service

List(QueryOptions, CancellationToken)

List of exported services, as well as the admin partitions and cluster peers that consume the services

public Task<QueryResult<ResolvedExportedService[]>> List(QueryOptions queryOptions, CancellationToken ct = default)

Parameters

queryOptions QueryOptions

Customised query options

ct CancellationToken

Cancellation token for long poll request. If set, OperationCanceledException will be thrown if the request is cancelled before completing

Returns

Task <QueryResult <ResolvedExportedService []>>

A query result containing an array of exported service

  • Methods
    • List(CancellationToken)
    • List(QueryOptions, CancellationToken)