21.272. Class GrpcHealthCheckServiceBase

Namespace: ArmoniK.Core.Common.gRPC
Assembly: ArmoniK.Core.Common.dll

[PublicAPI]
public abstract class GrpcHealthCheckServiceBase : Health.HealthBase

21.272.1. Inheritance

objectHealth.HealthBaseGrpcHealthCheckServiceBase

21.272.2. Derived

GrpcHealthCheckService

21.272.3. Inherited Members

Health.HealthBase.Check(HealthCheckRequest, ServerCallContext), Health.HealthBase.Watch(HealthCheckRequest, IServerStreamWriter<HealthCheckResponse>, ServerCallContext), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

21.272.4. Constructors

21.272.4.1. GrpcHealthCheckServiceBase(HealthCheckService, string[])

Initializes a new instance of the class.

protected GrpcHealthCheckServiceBase(HealthCheckService healthCheckService, string[] grpcServices)

21.272.4.1.1. Parameters

healthCheckService HealthCheckService

The ASP.NET Core health check service to use for health status reporting.

grpcServices string[]

An array of gRPC service names that this health check service supports.

21.272.5. Methods

21.272.5.1. Check(HealthCheckRequest, ServerCallContext)

If the requested service is unknown, the call will fail with status NOT_FOUND.

public override Task<HealthCheckResponse> Check(HealthCheckRequest request, ServerCallContext context)

21.272.5.1.1. Parameters

request HealthCheckRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

21.272.5.1.2. Returns

Task<HealthCheckResponse>

The response to send back to the client (wrapped by a task).