Table of Contents

Class DotNetDllBridgeWarmupState

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

Tracks whether the DotNetDll engine's CoreCLR bridge has been warmed up (or an eager warm-up was attempted and failed) on startup. Used by the bridge warmup health check to gate Kestrel readiness.

public sealed class DotNetDllBridgeWarmupState
Inheritance
DotNetDllBridgeWarmupState
Inherited Members

Properties

WarmupCompleted

Whether the warmup attempt has finished (successfully or not).

public bool WarmupCompleted { get; }

Property Value

bool

WarmupException

The exception that caused warmup to fail, if any.

public Exception? WarmupException { get; }

Property Value

Exception

WarmupFailed

Whether the eager warmup attempt failed.

public bool WarmupFailed { get; }

Property Value

bool

Methods

CompleteWarmup()

Marks warmup as successfully completed.

public void CompleteWarmup()

FailWarmup(Exception)

Marks warmup as failed with the given exception. Still marks it completed -- HostFxrBootstrap.EnsureInitialized() does not cache a thrown failure, so a later real request gets its own fresh lazy attempt regardless; there is no reason to keep this instance out of rotation for all other traffic over one engine's cold-start failure.

public void FailWarmup(Exception ex)

Parameters

ex Exception