PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility.​Configuration Namespace / Task­Type­Configuration Class / Task­Type­Configuration Constructor / Task­Type­Configuration Constructor (String, Create­Task­Delegate, Task­Phase)

TaskTypeConfiguration Constructor (String, CreateTaskDelegate, TaskPhase)

Initializes a new TaskTypeConfiguration with programmatic instantiation of the Task and specifies the phase in which the task should be executed.

Namespace:  PostSharp.Sdk.Extensibility.Configuration
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public TaskTypeConfiguration(
	string name,
	CreateTaskDelegate createTaskDelegate,
	TaskPhase phase
)

Parameters

name
Type: System.String
Task name.
createTaskDelegate
Type: PostSharp.Sdk.Extensibility.Configuration.CreateTaskDelegate
Delegate of the method that will create the task. This delegate is invoked if the task is instantiated declaratively via an XmlElement, or implicitly as a dependency of another task.
phase
Type: PostSharp.Sdk.Extensibility.TaskPhase
Phase in which the task should be executed, or null if the task is a pure service provider (in which case the Execute() method is not executed).
See Also