Class ExportedServices
Namespace: Consul
Assembly: Consul.dll
public class ExportedServices : IExportedServicesEndpoint
Inheritance
Implements
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
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
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