Interface IConsulServiceRegistry
A Consul service registry
public interface IConsulServiceRegistry : IServiceRegistry<IConsulRegistration>, IDisposable
- Inherited Members
Methods
DeregisterAsync(IConsulRegistration)
Deregister the provided registration in Consul
Task DeregisterAsync(IConsulRegistration registration)
Parameters
registration
IConsulRegistrationthe registration to register
Returns
- Task
the task
GetStatusAsync(IConsulRegistration)
Get the status of the registration in Consul
Task<object> GetStatusAsync(IConsulRegistration registration)
Parameters
registration
IConsulRegistrationthe registration to register
Returns
RegisterAsync(IConsulRegistration)
Register the provided registration in Consul
Task RegisterAsync(IConsulRegistration registration)
Parameters
registration
IConsulRegistrationthe registration to register
Returns
- Task
the task
SetStatusAsync(IConsulRegistration, string)
Set the status of the registration in Consul
Task SetStatusAsync(IConsulRegistration registration, string status)
Parameters
registration
IConsulRegistrationthe registration to register
status
stringthe status value to set
Returns
- Task
the task