Table of Contents

Class RecoveredEventArgs

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Raised on the UI thread when the main loop recovers after a stall. Safe to touch the UI.

public sealed class RecoveredEventArgs : EventArgs
Inheritance
RecoveredEventArgs
Inherited Members
Extension Methods

Constructors

RecoveredEventArgs(TimeSpan, DateTime, bool)

Initializes a new instance of the RecoveredEventArgs class.

public RecoveredEventArgs(TimeSpan wasStalledFor, DateTime timestampUtc, bool fullRefresh)

Parameters

wasStalledFor TimeSpan
timestampUtc DateTime
fullRefresh bool

Properties

FullRefresh

When true (default = WatchdogOptions.FullRefreshOnRecovery), the system performs a full-screen repaint after the event returns to clear any stray terminal output. Set false to skip it.

public bool FullRefresh { get; set; }

Property Value

bool

TimestampUtc

UTC timestamp when recovery was detected.

public DateTime TimestampUtc { get; }

Property Value

DateTime

WasStalledFor

Total time the main loop was stalled before it recovered.

public TimeSpan WasStalledFor { get; }

Property Value

TimeSpan