Table of Contents

Interface IServiceRegistry<T>

Namespace
Steeltoe.Common.Discovery
Assembly
Steeltoe.Common.Abstractions.dll

Represents a Service registry (e.g. Consul, etc.)

public interface IServiceRegistry<in T> : IDisposable where T : IServiceInstance

Type Parameters

T

a type representing a service instance

Inherited Members

Methods

Deregister(T)

Deregister a service instance in the service registry

void Deregister(T registration)

Parameters

registration T

the service instance to register

GetStatus<S>(T)

Return the current status of the service registry registration

S GetStatus<S>(T registration) where S : class

Parameters

registration T

the service registration to obtain status for

Returns

S

the returned status

Type Parameters

S

the status

Register(T)

Register a service instance in the service registry

void Register(T registration)

Parameters

registration T

the service instance to register

SetStatus(T, string)

Update the registration in the service registry with the provided status

void SetStatus(T registration, string status)

Parameters

registration T

the registration to update

status string

the status