Table of Contents

Method OnIsRunningChanging

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

OnIsRunningChanging(bool, bool)

Override to handle state changes when starting or stopping. Called by base RaiseIsRunningChanging(bool, bool) before events are raised.

protected override bool OnIsRunningChanging(bool oldIsRunning, bool newIsRunning)

Parameters

oldIsRunning bool
newIsRunning bool

Returns

bool

Remarks

The base class RaiseIsRunningChanging(bool, bool) already clears Result to null when starting. This allows callers to detect cancellation by checking if Result is null after the session ends.