Click or drag to resize

SegmentPropagator.UpdateProgressTrackerAndReturnIfCanceled Method

A helper method to handle the progress tracker that the various Propagate() methods have. Because how long propagation will take cannot be known ahead of time, the progress is reported as -1. You can however use the progress tracker to cancel propagation.

Namespace:  AGI.Foundation.SegmentPropagation
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public static bool UpdateProgressTrackerAndReturnIfCanceled(
	ITrackCalculationProgress progressTracker
)

Parameters

progressTracker
Type: AGI.Foundation.ITrackCalculationProgress
The progress tracker that can be used to cancel propagation.

Return Value

Type: Boolean
true if propagation should stop; otherwise false.
See Also