Table of Contents

Class DelayActionHelper

Namespace
Ecng.Xaml
Assembly
StockSharp.Xaml.dll

Provides a simple timer-based helper to invoke an action after a delay.

public class DelayActionHelper
Inheritance
DelayActionHelper
Inherited Members
Extension Methods

Constructors

DelayActionHelper()

public DelayActionHelper()

Properties

Interval

Gets or sets the delay interval in milliseconds. Changing the value restarts the timer.

public double Interval { get; set; }

Property Value

double

Methods

Restart()

Restarts the timer, resetting the delay countdown.

public void Restart()

Start(Action)

Starts the helper and schedules the specified action to run after the current Interval.

public void Start(Action action)

Parameters

action Action

The action to execute when the delay elapses.

Stop()

Stops the timer and prevents the pending action from executing.

public void Stop()