C# 클래스 _3PA.Lib.ReccurentAction

Allows to do a given action every XXX ms for XXX times
상속: IDisposable
파일 보기 프로젝트 열기: jcaillon/3P 1 사용 예제들

공개 메소드들

메소드 설명
CleanAll ( ) : void

Clean all recurrent actions started

Dispose ( ) : void
ReccurentAction ( System.Action actionToDo, long timeLapse, int nbRepeat, bool doActionOnCreate = true ) : System

Executed ASYNCHRONOUSLY, Allows to do a given action (in a new task) every XXX ms for XXX times by default it does the action when creating this instance, set doActionOnCreate = false to not do it immediatly

Stop ( ) : void

Stop the recurrent action

비공개 메소드들

메소드 설명
OnTick ( object sender, System.Timers.ElapsedEventArgs elapsedEventArgs ) : void

This method every time the timer ticks

메소드 상세

CleanAll() 공개 정적인 메소드

Clean all recurrent actions started
public static CleanAll ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ReccurentAction() 공개 메소드

Executed ASYNCHRONOUSLY, Allows to do a given action (in a new task) every XXX ms for XXX times by default it does the action when creating this instance, set doActionOnCreate = false to not do it immediatly
public ReccurentAction ( System.Action actionToDo, long timeLapse, int nbRepeat, bool doActionOnCreate = true ) : System
actionToDo System.Action
timeLapse long
nbRepeat int
doActionOnCreate bool
리턴 System

Stop() 공개 메소드

Stop the recurrent action
public Stop ( ) : void
리턴 void