C# Class NSoft.NFramework.TimePeriods.PeriodInvoker

Inheritance: IDisposable
Afficher le fichier Open project: debop/NFramework Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultIdleTimeSpan System.TimeSpan
DefaultMinTimeSpan System.TimeSpan

Méthodes publiques

Méthode Description
Dispose ( ) : void
PeriodInvoker ( string periodTimeFormat, Action periodAction ) : System
PeriodInvoker ( string periodTimeFormat, Action periodAction, bool startNow ) : System
PeriodInvoker ( string periodTimeFormat, System.TimeSpan idleTimeSpan, Action periodAction, bool startNow = false ) : System
Start ( ) : void

반복 호출 작업을 시작합니다.

Stop ( ) : void

반복 호출 작업을 취소합니다.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
DoInvokeByPeriodTime ( string periodTimeFormat, System.TimeSpan idleTimeSpan, Action periodAction, CancellationToken token ) : void

반복 주기에 따라 지정된 Action을 비동기 방식으로 작업을 수행합니다.

DoInvokeByTimeSpan ( System.TimeSpan periodTimeSpan, Action periodAction, CancellationToken token ) : void

반복 주기에 따라 지정된 Action을 비동기 방식으로 수행하는 작업을 수행합니다.

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DoInvokeByPeriodTime() protected méthode

반복 주기에 따라 지정된 Action을 비동기 방식으로 작업을 수행합니다.
protected DoInvokeByPeriodTime ( string periodTimeFormat, System.TimeSpan idleTimeSpan, Action periodAction, CancellationToken token ) : void
periodTimeFormat string 주기 표현식
idleTimeSpan System.TimeSpan 유휴 시간 간격
periodAction Action 주기 도래시 수행할 델리게이트
token System.Threading.CancellationToken 취소시 필요한 토큰
Résultat void

DoInvokeByTimeSpan() protected méthode

반복 주기에 따라 지정된 Action을 비동기 방식으로 수행하는 작업을 수행합니다.
protected DoInvokeByTimeSpan ( System.TimeSpan periodTimeSpan, Action periodAction, CancellationToken token ) : void
periodTimeSpan System.TimeSpan 반복 작업 간의 시간 간격
periodAction Action 주기 도래시 수행할 델리게이트
token System.Threading.CancellationToken 취소시 필요한 토큰
Résultat void

PeriodInvoker() public méthode

public PeriodInvoker ( string periodTimeFormat, Action periodAction ) : System
periodTimeFormat string
periodAction Action
Résultat System

PeriodInvoker() public méthode

public PeriodInvoker ( string periodTimeFormat, Action periodAction, bool startNow ) : System
periodTimeFormat string
periodAction Action
startNow bool
Résultat System

PeriodInvoker() public méthode

public PeriodInvoker ( string periodTimeFormat, System.TimeSpan idleTimeSpan, Action periodAction, bool startNow = false ) : System
periodTimeFormat string
idleTimeSpan System.TimeSpan
periodAction Action
startNow bool
Résultat System

Start() public méthode

반복 호출 작업을 시작합니다.
public Start ( ) : void
Résultat void

Stop() public méthode

반복 호출 작업을 취소합니다.
public Stop ( ) : void
Résultat void

Property Details

DefaultIdleTimeSpan public_oe static_oe property

public static TimeSpan,System DefaultIdleTimeSpan
Résultat System.TimeSpan

DefaultMinTimeSpan public_oe static_oe property

public static TimeSpan,System DefaultMinTimeSpan
Résultat System.TimeSpan