Table of Contents

Interface IConsulServiceRegistry

Namespace
Steeltoe.Discovery.Consul.Registry
Assembly
Steeltoe.Discovery.Consul.dll

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 IConsulRegistration

the registration to register

Returns

Task

the task

GetStatusAsync(IConsulRegistration)

Get the status of the registration in Consul

Task<object> GetStatusAsync(IConsulRegistration registration)

Parameters

registration IConsulRegistration

the registration to register

Returns

Task<object>

the status value

RegisterAsync(IConsulRegistration)

Register the provided registration in Consul

Task RegisterAsync(IConsulRegistration registration)

Parameters

registration IConsulRegistration

the 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 IConsulRegistration

the registration to register

status string

the status value to set

Returns

Task

the task