Interface IServiceRegistry<T>
Represents a Service registry (e.g. Consul, etc.)
public interface IServiceRegistry<in T> : IDisposable where T : IServiceInstance
Type Parameters
Ta type representing a service instance
- Inherited Members
Methods
Deregister(T)
Deregister a service instance in the service registry
void Deregister(T registration)
Parameters
registrationTthe 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
registrationTthe service registration to obtain status for
Returns
- S
the returned status
Type Parameters
Sthe status
Register(T)
Register a service instance in the service registry
void Register(T registration)
Parameters
registrationTthe 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
registrationTthe registration to update
statusstringthe status