C# Class LogViewer.Utilities.DelayedActions.DelayedAction

Afficher le fichier Open project: Dronacharya-Org/Dronacharya

Méthodes publiques

Méthode 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

Méthode Description
OnDelayTimerTick ( object state ) : void

Method Details

StartDelayTimer() public méthode

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
Résultat void

StopDelayTimer() public méthode

public StopDelayTimer ( ) : void
Résultat void