C# 클래스 Candor.Tasks.RepeatingWorkerRoleTask

A worker task that repeats on a specific interval.
상속: WorkerRoleTask, IDisposable
파일 보기 프로젝트 열기: michael-lang/candor-common

공개 메소드들

메소드 설명
Dispose ( ) : void

Disposed of resources used by this monitor.

Initialize ( string name, NameValueCollection configValue ) : void

Initializes the provider with the specified values.

OnStart ( ) : void

Starts this worker roles work loop, typically with a timer, and then returns immediately.

OnStop ( ) : void

Stops the work loop and then returns when complete. Expect the process to terminate potentially immediately after this method returns.

OnWaitingPeriodElapsedAdvanced ( ) : IterationResult

Code to be executed everytime the waiting period elapses, but with controls to alter the flow of subsequent iterations. This gives more fine grained control to derived classes to follow different workloads on a custom schedule.

If this method is overridden, then the other OnWaitingPeriodElapsed method will never be called by this base class.

Ping ( ) : void

Pings the task to ensure that it is running.

보호된 메소드들

메소드 설명
CheckIn ( ) : void

The derived class can mark that it has reached an activity checkpoint to verify that it is still active.

If too much time passes before a check in or a release of a work period then the timer is restarted when this task is pinged.

RepeatingWorkerRoleTask ( ) : System

The default constructor.

비공개 메소드들

메소드 설명
ClearTimer ( ) : void
Dispose ( bool disposing ) : void
OnWaitingPeriodElapsed ( ) : void
PauseTimer ( ) : void
ResetTimer ( ) : void
ResumeTimer ( IterationResult result ) : void
StartTimer ( ) : void
mainTimer__Elapsed ( object sender ) : void

메소드 상세

CheckIn() 보호된 메소드

The derived class can mark that it has reached an activity checkpoint to verify that it is still active.
If too much time passes before a check in or a release of a work period then the timer is restarted when this task is pinged.
protected CheckIn ( ) : void
리턴 void

Dispose() 공개 메소드

Disposed of resources used by this monitor.
public Dispose ( ) : void
리턴 void

Initialize() 공개 메소드

Initializes the provider with the specified values.
public Initialize ( string name, NameValueCollection configValue ) : void
name string The name of the provider.
configValue System.Collections.Specialized.NameValueCollection Provider specific attributes.
리턴 void

OnStart() 공개 메소드

Starts this worker roles work loop, typically with a timer, and then returns immediately.
public OnStart ( ) : void
리턴 void

OnStop() 공개 메소드

Stops the work loop and then returns when complete. Expect the process to terminate potentially immediately after this method returns.
public OnStop ( ) : void
리턴 void

OnWaitingPeriodElapsedAdvanced() 공개 메소드

Code to be executed everytime the waiting period elapses, but with controls to alter the flow of subsequent iterations. This gives more fine grained control to derived classes to follow different workloads on a custom schedule.
If this method is overridden, then the other OnWaitingPeriodElapsed method will never be called by this base class.
public OnWaitingPeriodElapsedAdvanced ( ) : IterationResult
리턴 IterationResult

Ping() 공개 메소드

Pings the task to ensure that it is running.
public Ping ( ) : void
리턴 void

RepeatingWorkerRoleTask() 보호된 메소드

The default constructor.
protected RepeatingWorkerRoleTask ( ) : System
리턴 System