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.
ファイルを表示 Open project: toptensoftware/manos Class Usage Examples

Public Methods

Method 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 method

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

ShouldContinueToRepeat() public method

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

Stop() public method

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

Timeout() public method

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

Timeout() public method

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
return System