Interface IConsulDiscoveryClient
A Consul Discovery client
Namespace: Steeltoe.Discovery.Consul.Discovery
Assembly: Steeltoe.Discovery.Consul.dll
Syntax
public interface IConsulDiscoveryClient : IDiscoveryClient
Methods
| Edit this page View SourceGetAllInstances(QueryOptions)
Get all the instances from the Consul catalog
Declaration
IList<IServiceInstance> GetAllInstances(QueryOptions queryOptions = null)
Parameters
Type | Name | Description |
---|---|---|
QueryOptions | queryOptions | any Consul query options to use |
Returns
Type | Description |
---|---|
IList<IServiceInstance> | list of found service instances |
GetInstances(String, QueryOptions)
Get all the instances for the given service id
Declaration
IList<IServiceInstance> GetInstances(string serviceId, QueryOptions queryOptions = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | serviceId | the service to lookup |
QueryOptions | queryOptions | any Consul query options to use |
Returns
Type | Description |
---|---|
IList<IServiceInstance> | list of found service instances |
GetServices(QueryOptions)
Get all of the services from the Consul catalog
Declaration
IList<string> GetServices(QueryOptions queryOptions = null)
Parameters
Type | Name | Description |
---|---|---|
QueryOptions | queryOptions | any Consul query options to use |
Returns
Type | Description |
---|---|
IList<System.String> | list of found services |