Interface IConsulDiscoveryClient
A Consul Discovery client
public interface IConsulDiscoveryClient : IDiscoveryClient, IServiceInstanceProvider, IDisposable
- Inherited Members
Methods
GetAllInstances(QueryOptions)
Get all the instances from the Consul catalog
IList<IServiceInstance> GetAllInstances(QueryOptions queryOptions = null)
Parameters
queryOptions
QueryOptionsany Consul query options to use
Returns
- IList<IServiceInstance>
list of found service instances
GetInstances(string, QueryOptions)
Get all the instances for the given service id
IList<IServiceInstance> GetInstances(string serviceId, QueryOptions queryOptions = null)
Parameters
serviceId
stringthe service to lookup
queryOptions
QueryOptionsany Consul query options to use
Returns
- IList<IServiceInstance>
list of found service instances
GetServices(QueryOptions)
Get all of the services from the Consul catalog
IList<string> GetServices(QueryOptions queryOptions = null)
Parameters
queryOptions
QueryOptionsany Consul query options to use