C# Class LogViewer.Utilities.DelayedActions.DelayedAction

Datei anzeigen Open project: Dronacharya-Org/Dronacharya

Public Methods

Method Description
StartDelayTimer ( System.Action action, System.TimeSpan delay ) : void

Start a count down with the given delay, and fire the given action when it reaches zero. But if this method is called again before the timeout it resets the timeout and starts again.

StopDelayTimer ( ) : void

Private Methods

Method Description
OnDelayTimerTick ( object state ) : void

Method Details

StartDelayTimer() public method

Start a count down with the given delay, and fire the given action when it reaches zero. But if this method is called again before the timeout it resets the timeout and starts again.
public StartDelayTimer ( System.Action action, System.TimeSpan delay ) : void
action System.Action The action to perform when the delay is reached
delay System.TimeSpan The timeout before calling the action
return void

StopDelayTimer() public method

public StopDelayTimer ( ) : void
return void