Class CustomTask

A custom task allows you to run your own code (defined as an Action object), with additionally logging in place. (TaskType: CUSTOM)

Inheritance
System.Object
CustomTask
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.Logging
Assembly: ETLBox.dll
Syntax
    public class CustomTask : ControlFlowTask, ILoggableTask

Constructors

CustomTask(String)

Declaration
    public CustomTask(string name)
Parameters
TypeNameDescription
System.Stringname

Properties

TaskName

A name to identify the task or component. Every component or task comes with a default name that can be overwritten.

Declaration
    public override string TaskName { get; set; }
Property Value
TypeDescription
System.String
Overrides

Methods

Execute()

Declaration
    public void Execute()

Execute(Action)

Declaration
    public void Execute(Action task)
Parameters
TypeNameDescription
System.Actiontask

Execute(String, Action)

Declaration
    public static void Execute(string name, Action task)
Parameters
TypeNameDescription
System.Stringname
System.Actiontask

Execute<t1>(Action<t1>, t1)

Declaration
    public void Execute<t1>(Action<t1> task, t1 param1)
Parameters
TypeNameDescription
System.Action<t1>task
t1param1
Type Parameters
NameDescription
t1

Execute<t1>(String, Action<t1>, t1)

Declaration
    public static void Execute<t1>(string name, Action<t1> task, t1 param1)
Parameters
TypeNameDescription
System.Stringname
System.Action<t1>task
t1param1
Type Parameters
NameDescription
t1

Execute<t1, t2>(Action<t1, t2>, t1, t2)

Declaration
    public void Execute<t1, t2>(Action<t1, t2> task, t1 param1, t2 param2)
Parameters
TypeNameDescription
System.Action<t1, t2>task
t1param1
t2param2
Type Parameters
NameDescription
t1
t2

Execute<t1, t2>(String, Action<t1, t2>, t1, t2)

Declaration
    public static void Execute<t1, t2>(string name, Action<t1, t2> task, t1 param1, t2 param2)
Parameters
TypeNameDescription
System.Stringname
System.Action<t1, t2>task
t1param1
t2param2
Type Parameters
NameDescription
t1
t2

Implements