Interface IServiceRegistry<T>
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
Tthe 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
Tthe 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
Tthe 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
Tthe registration to update
status
stringthe status