C# Класс LogViewer.Utilities.DelayedActions.DelayedAction

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
OnDelayTimerTick ( object state ) : void

Описание методов

StartDelayTimer() публичный Метод

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
Результат void

StopDelayTimer() публичный Метод

public StopDelayTimer ( ) : void
Результат void