Method OnIsRunningChanging
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
Returns
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.