C# 클래스 Rebel.Framework.Tasks.DelegateTask

Represents a declarative task that runs a provided delegate when told to execute
상속: AbstractTask
파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5

공개 메소드들

메소드 설명
DelegateTask ( Action callback ) : System

Initializes a new instance of the DelegateTask class. Note that since this constructor has no IFrameworkContext parameter, the Context property of the base class AbstractTask will be null until the Execute method is called at which point the TaskExecutionContext.EventArgs.FrameworkContext property will be used to set it.

DelegateTask ( IFrameworkContext context, Action callback ) : System

Initializes a new instance of the DelegateTask class.

Execute ( TaskExecutionContext context ) : void

Executes this task instance.

메소드 상세

DelegateTask() 공개 메소드

Initializes a new instance of the DelegateTask class. Note that since this constructor has no IFrameworkContext parameter, the Context property of the base class AbstractTask will be null until the Execute method is called at which point the TaskExecutionContext.EventArgs.FrameworkContext property will be used to set it.
public DelegateTask ( Action callback ) : System
callback Action The callback.
리턴 System

DelegateTask() 공개 메소드

Initializes a new instance of the DelegateTask class.
public DelegateTask ( IFrameworkContext context, Action callback ) : System
context IFrameworkContext The context.
callback Action The callback.
리턴 System

Execute() 공개 메소드

Executes this task instance.
public Execute ( TaskExecutionContext context ) : void
context TaskExecutionContext
리턴 void