Table of Contents

Class DotNetDllBridgeWarmupHealthCheck

Namespace
Virtufin.WorkManager.Services
Assembly
Virtufin.WorkManager.dll

Health check that verifies the DotNetDll engine's CoreCLR bridge warmup has completed, so a pod is not reported Ready until the one-time, potentially tens-of-seconds-long bridge bootstrap is off the request path (see HostFxrBootstrap).

public sealed class DotNetDllBridgeWarmupHealthCheck : IHealthCheck
Inheritance
DotNetDllBridgeWarmupHealthCheck
Implements
Inherited Members

Constructors

DotNetDllBridgeWarmupHealthCheck(DotNetDllBridgeWarmupState)

public DotNetDllBridgeWarmupHealthCheck(DotNetDllBridgeWarmupState warmupState)

Parameters

warmupState DotNetDllBridgeWarmupState

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.