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
WarmupException
The exception that caused warmup to fail, if any.
public Exception? WarmupException { get; }
Property Value
WarmupFailed
Whether the eager warmup attempt failed.
public bool WarmupFailed { get; }
Property Value
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
exException