C# Class Rebel.Framework.Tasks.DelegateTask

Represents a declarative task that runs a provided delegate when told to execute
Inheritance: AbstractTask
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode Description
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.

Method Details

DelegateTask() public méthode

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.
Résultat System

DelegateTask() public méthode

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

Execute() public méthode

Executes this task instance.
public Execute ( TaskExecutionContext context ) : void
context TaskExecutionContext
Résultat void