Interface IServiceRegistry<T>
Represents a Service registry (e.g. Consul, etc.)
Namespace: Steeltoe.Common.Discovery
Assembly: Steeltoe.Common.Abstractions.dll
Syntax
public interface IServiceRegistry<in T>
where T : IServiceInstance
Type Parameters
Name | Description |
---|---|
T | a type representing a service instance |
Methods
| Edit this page View SourceDeregister(T)
Deregister a service instance in the service registry
Declaration
void Deregister(T registration)
Parameters
Type | Name | Description |
---|---|---|
T | registration | the service instance to register |
GetStatus<S>(T)
Return the current status of the service registry registration
Declaration
S GetStatus<S>(T registration)
where S : class
Parameters
Type | Name | Description |
---|---|---|
T | registration | the service registration to obtain status for |
Returns
Type | Description |
---|---|
S | the returned status |
Type Parameters
Name | Description |
---|---|
S | the status |
Register(T)
Register a service instance in the service registry
Declaration
void Register(T registration)
Parameters
Type | Name | Description |
---|---|---|
T | registration | the service instance to register |
SetStatus(T, String)
Update the registration in the service registry with the provided status
Declaration
void SetStatus(T registration, string status)
Parameters
Type | Name | Description |
---|---|---|
T | registration | the registration to update |
System.String | status | the status |