Interface IConsulServiceRegistry
A Consul service registry
Namespace: Steeltoe.Discovery.Consul.Registry
Assembly: Steeltoe.Discovery.Consul.dll
Syntax
public interface IConsulServiceRegistry
Methods
| Edit this page View SourceDeregisterAsync(IConsulRegistration)
Deregister the provided registration in Consul
Declaration
Task DeregisterAsync(IConsulRegistration registration)
Parameters
Type | Name | Description |
---|---|---|
IConsulRegistration | registration | the registration to register |
Returns
Type | Description |
---|---|
Task | the task |
GetStatusAsync(IConsulRegistration)
Get the status of the registration in Consul
Declaration
Task<object> GetStatusAsync(IConsulRegistration registration)
Parameters
Type | Name | Description |
---|---|---|
IConsulRegistration | registration | the registration to register |
Returns
Type | Description |
---|---|
Task<System.Object> | the status value |
RegisterAsync(IConsulRegistration)
Register the provided registration in Consul
Declaration
Task RegisterAsync(IConsulRegistration registration)
Parameters
Type | Name | Description |
---|---|---|
IConsulRegistration | registration | the registration to register |
Returns
Type | Description |
---|---|
Task | the task |
SetStatusAsync(IConsulRegistration, String)
Set the status of the registration in Consul
Declaration
Task SetStatusAsync(IConsulRegistration registration, string status)
Parameters
Type | Name | Description |
---|---|---|
IConsulRegistration | registration | the registration to register |
System.String | status | the status value to set |
Returns
Type | Description |
---|---|
Task | the task |