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.
파일 보기 프로젝트 열기: toptensoftware/manos 1 사용 예제들

공개 메소드들

메소드 설명
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