LogSection

Class LogSection

A log section will execute your code block, wrapping the action with log messages indicating start and end.

Implements
Namespace: ETLBox.Logging
Assembly: ETLBox.Logging.dll
Syntax
    public class LogSection : ControlFlowTask, ILoggableTask

Constructors

LogSection(string)

Declaration
    public LogSection(string name)
Parameters
TypeNameDescription
stringname

Methods

Execute(Action)

Declaration
    public void Execute(Action task)
Parameters
TypeNameDescription
Actiontask

Execute(string, Action)

Declaration
    public static void Execute(string name, Action task)
Parameters
TypeNameDescription
stringname
Actiontask

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

Declaration
    public void Execute<t1>(Action<t1> task, t1 param1)
Parameters
TypeNameDescription
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
stringname
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
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
stringname
Action<t1, t2>task
t1param1
t2param2
Type Parameters
NameDescription
t1
t2

Implements