Class LogSection
A log section will execute your code block, wrapping the action with log messages indicating start and end.
Inheritance
System.Object
LogSection
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 LogSection : ControlFlowTask, ILoggableTask
Constructors
LogSection(String)#
Declaration
public LogSection(string name)
Parameters
Type | Name | Description |
---|
System.String | name | |
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
Type | Description |
---|
System.String | |
Overrides
Methods
Execute(Action)#
Declaration
public void Execute(Action task)
Parameters
Type | Name | Description |
---|
System.Action | task | |
Execute(String, Action)#
Declaration
public static void Execute(string name, Action task)
Parameters
Type | Name | Description |
---|
System.String | name | |
System.Action | task | |
Execute<t1>(Action<t1>, t1)#
Declaration
public void Execute<t1>(Action<t1> task, t1 param1)
Parameters
Type | Name | Description |
---|
System.Action<t1> | task | |
t1 | param1 | |
Type Parameters
Execute<t1>(String, Action<t1>, t1)#
Declaration
public static void Execute<t1>(string name, Action<t1> task, t1 param1)
Parameters
Type | Name | Description |
---|
System.String | name | |
System.Action<t1> | task | |
t1 | param1 | |
Type Parameters
Execute<t1, t2>(Action<t1, t2>, t1, t2)#
Declaration
public void Execute<t1, t2>(Action<t1, t2> task, t1 param1, t2 param2)
Parameters
Type | Name | Description |
---|
System.Action<t1, t2> | task | |
t1 | param1 | |
t2 | param2 | |
Type Parameters
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
Type | Name | Description |
---|
System.String | name | |
System.Action<t1, t2> | task | |
t1 | param1 | |
t2 | param2 | |
Type Parameters
Implements#