C# Класс Manos.Timeout

Provides a mechanism for things to happen periodically within a ManosApp. Timeouts are gauranteed to happen at some moment on or after the TimeSpan specified has ellapsed. Timeouts will never run before the specified TimeSpan has elapsed. Use the method Manos.IO.IOLoop "AddTimeout" method to register each Timeout.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Run ( Manos.ManosApp app ) : void

Causes the action specified in the constructor to be executed. Infrastructure.

ShouldContinueToRepeat ( ) : bool

Inidicates that the IOLoop should retain this timeout, because it will be run again at some point in the future. Infrastructure.

Stop ( ) : void

Stop the current timeout from further execution. Once a timeout is stopped it can not be restarted

Timeout ( System.TimeSpan span, IRepeatBehavior repeat, object data, TimeoutCallback callback ) : System
Timeout ( System.TimeSpan begin, System.TimeSpan span, IRepeatBehavior repeat, object data, TimeoutCallback callback ) : System

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

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

Causes the action specified in the constructor to be executed. Infrastructure.
public Run ( Manos.ManosApp app ) : void
app Manos.ManosApp /// A ///
Результат void

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

Inidicates that the IOLoop should retain this timeout, because it will be run again at some point in the future. Infrastructure.
public ShouldContinueToRepeat ( ) : bool
Результат bool

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

Stop the current timeout from further execution. Once a timeout is stopped it can not be restarted
public Stop ( ) : void
Результат void

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

public Timeout ( System.TimeSpan span, IRepeatBehavior repeat, object data, TimeoutCallback callback ) : System
span System.TimeSpan
repeat IRepeatBehavior
data object
callback TimeoutCallback
Результат System

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

public Timeout ( System.TimeSpan begin, System.TimeSpan span, IRepeatBehavior repeat, object data, TimeoutCallback callback ) : System
begin System.TimeSpan
span System.TimeSpan
repeat IRepeatBehavior
data object
callback TimeoutCallback
Результат System