Table of Contents

Class GatewayHealthCheck

Namespace
JD.AI.Gateway.Services
Assembly
JD.AI.Gateway.dll

Health check that verifies the gateway is operational.

public sealed class GatewayHealthCheck : IHealthCheck
Inheritance
GatewayHealthCheck
Implements
Inherited Members

Constructors

GatewayHealthCheck(AgentPoolService)

public GatewayHealthCheck(AgentPoolService pool)

Parameters

pool AgentPoolService

Methods

CheckHealthAsync(HealthCheckContext, CancellationToken)

Runs the health check, returning the status of the component being checked.

public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)

Parameters

context HealthCheckContext

A context object associated with the current execution.

cancellationToken CancellationToken

A CancellationToken that can be used to cancel the health check.

Returns

Task<HealthCheckResult>

A Task<TResult> that completes when the health check has finished, yielding the status of the component being checked.