Click or drag to resize

HealthServiceImpl Class

Implementation of a simple Health service. Useful for health checking. Registering service with a server:
var serviceImpl = new HealthServiceImpl();
server = new Server();
server.AddServiceDefinition(Grpc.Health.V1.Health.BindService(serviceImpl));
Inheritance Hierarchy

Namespace:  Grpc.HealthCheck
Assembly:  Grpc.HealthCheck (in Grpc.HealthCheck.dll) Version: 1.2.0-dev
Syntax
public class HealthServiceImpl : HealthHealthBase

The HealthServiceImpl type exposes the following members.

Constructors
  NameDescription
Public methodHealthServiceImpl
Initializes a new instance of the HealthServiceImpl class
Top
Methods
  NameDescription
Public methodCheck
Performs a health status check.
(Overrides HealthHealthBaseCheck(HealthCheckRequest, ServerCallContext).)
Public methodClearAll
Clears statuses for all services.
Public methodClearStatus
Clears health status for given service.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetStatus
Sets the health status for given service.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also