C# Class 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.
Afficher le fichier Open project: toptensoftware/manos Class Usage Examples

Méthodes publiques

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

Method Details

Run() public méthode

Causes the action specified in the constructor to be executed. Infrastructure.
public Run ( Manos.ManosApp app ) : void
app Manos.ManosApp /// A ///
Résultat void

ShouldContinueToRepeat() public méthode

Inidicates that the IOLoop should retain this timeout, because it will be run again at some point in the future. Infrastructure.
public ShouldContinueToRepeat ( ) : bool
Résultat bool

Stop() public méthode

Stop the current timeout from further execution. Once a timeout is stopped it can not be restarted
public Stop ( ) : void
Résultat void

Timeout() public méthode

public Timeout ( System.TimeSpan span, IRepeatBehavior repeat, object data, TimeoutCallback callback ) : System
span System.TimeSpan
repeat IRepeatBehavior
data object
callback TimeoutCallback
Résultat System

Timeout() public méthode

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