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
registrationIConsulRegistrationthe registration to register
Returns
- Task
the task
GetStatusAsync(IConsulRegistration)
Get the status of the registration in Consul
Task<object> GetStatusAsync(IConsulRegistration registration)
Parameters
registrationIConsulRegistrationthe registration to register
Returns
RegisterAsync(IConsulRegistration)
Register the provided registration in Consul
Task RegisterAsync(IConsulRegistration registration)
Parameters
registrationIConsulRegistrationthe 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
registrationIConsulRegistrationthe registration to register
statusstringthe status value to set
Returns
- Task
the task