Метод | Описание | |
---|---|---|
GetService ( string serviceName, string tagName ) : |
Gets the service
|
|
GetServices ( string serviceName ) : ServiceStack.Discovery.Consul.ConsulServiceResponse[] |
Returns a list of catalog services and tags
|
|
RegisterHealthChecks ( ) : void |
Registers service health checks with consul
|
|
RegisterService ( ServiceRegistration registration ) : void |
Registers the servicestack apphost with the local consul agent
|
|
UnregisterService ( string serviceId ) : void |
Removes a service registation (and it's associated health checks) from consul
|
Метод | Описание | |
---|---|---|
GetConsulServiceResponses ( string response ) : ServiceStack.Discovery.Consul.ConsulServiceResponse[] |
public static GetService ( string serviceName, string tagName ) : |
||
serviceName | string | The global service name for servicestack services |
tagName | string | the tagName to find the service for |
Результат |
public static GetServices ( string serviceName ) : ServiceStack.Discovery.Consul.ConsulServiceResponse[] | ||
serviceName | string | |
Результат | ServiceStack.Discovery.Consul.ConsulServiceResponse[] |
public static RegisterHealthChecks ( ) : void | ||
Результат | void |
public static RegisterService ( ServiceRegistration registration ) : void | ||
registration | ServiceRegistration | |
Результат | void |
public static UnregisterService ( string serviceId ) : void | ||
serviceId | string | the id of the service to unregister |
Результат | void |