C# Class CK.Core.ActivityMonitorGroupData

Data required by IActivityMonitor.UnfilteredOpenGroup.
Inheritance: ActivityMonitorLogData
Mostra file Open project: Invenietis/ck-core Class Usage Examples

Private Properties

Property Type Description
ConsumeConclusionText string

Public Methods

Method Description
ActivityMonitorGroupData ( ) : System

Initializes a mere new ActivityMonitorGroupData without any actual data. Should be unsed only for rejected opened group.

ActivityMonitorGroupData ( LogLevel level, CKTrait tags, string text, DateTimeStamp logTime, Exception exception, Func getConclusionText, string fileName, int lineNumber ) : System

Initializes a new ActivityMonitorGroupData.

ActivityMonitorGroupData ( LogLevel level, string fileName, int lineNumber ) : System

Preinitializes a new ActivityMonitorLogData: Initialize has yet to be called.

Initialize ( string text, Exception exception, CKTrait tags, DateTimeStamp logTime, Func getConclusionText ) : void

Initializes this group data.

Private Methods

Method Description
ConsumeConclusionText ( ) : string

Calls GetConclusionText and sets it to null.

Method Details

ActivityMonitorGroupData() public method

Initializes a mere new ActivityMonitorGroupData without any actual data. Should be unsed only for rejected opened group.
public ActivityMonitorGroupData ( ) : System
return System

ActivityMonitorGroupData() public method

Initializes a new ActivityMonitorGroupData.
public ActivityMonitorGroupData ( LogLevel level, CKTrait tags, string text, DateTimeStamp logTime, Exception exception, Func getConclusionText, string fileName, int lineNumber ) : System
level LogLevel Log level. Can not be .
tags CKTrait Tags (from ) to associate to the log. It will be union-ed with the current .
text string Text of the log. Can be null or empty only if is not null: the is the text.
logTime DateTimeStamp /// Time of the log. /// You may use or IActivityMonitor.NextLogTime() extension method. ///
exception System.Exception Exception of the log. Can be null.
getConclusionText Func Optional function that provides delayed obtention of the group conclusion: will be called on group closing.
fileName string Name of the source file that emitted the log. Can be null.
lineNumber int Line number in the source file that emitted the log. Can be null.
return System

ActivityMonitorGroupData() public method

Preinitializes a new ActivityMonitorLogData: Initialize has yet to be called.
public ActivityMonitorGroupData ( LogLevel level, string fileName, int lineNumber ) : System
level LogLevel Log level. Can not be .
fileName string Name of the source file that emitted the log. Can be null.
lineNumber int Line number in the source file that emitted the log. Can be null.
return System

Initialize() public method

Initializes this group data.
public Initialize ( string text, Exception exception, CKTrait tags, DateTimeStamp logTime, Func getConclusionText ) : void
text string Text of the log. Can be null or empty only if is not null: the is the text.
exception System.Exception Exception of the log. Can be null.
tags CKTrait Tags (from ) to associate to the log. It will be union-ed with the current .
logTime DateTimeStamp /// Time of the log. /// You may use or IActivityMonitor.NextLogTime() extension method. ///
getConclusionText Func Optional function that provides delayed obtention of the group conclusion: will be called on group closing.
return void