C# Class NSoft.NFramework.TimePeriods.PeriodInvoker

Inheritance: IDisposable
Mostrar archivo Open project: debop/NFramework Class Usage Examples

Public Properties

Property Type Description
DefaultIdleTimeSpan System.TimeSpan
DefaultMinTimeSpan System.TimeSpan

Public Methods

Method 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

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

Protected Methods

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

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DoInvokeByPeriodTime() protected method

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

DoInvokeByTimeSpan() protected method

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

PeriodInvoker() public method

public PeriodInvoker ( string periodTimeFormat, Action periodAction ) : System
periodTimeFormat string
periodAction Action
return System

PeriodInvoker() public method

public PeriodInvoker ( string periodTimeFormat, Action periodAction, bool startNow ) : System
periodTimeFormat string
periodAction Action
startNow bool
return System

PeriodInvoker() public method

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

Start() public method

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

Stop() public method

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

Property Details

DefaultIdleTimeSpan public_oe static_oe property

public static TimeSpan,System DefaultIdleTimeSpan
return System.TimeSpan

DefaultMinTimeSpan public_oe static_oe property

public static TimeSpan,System DefaultMinTimeSpan
return System.TimeSpan