Class ActivityMonitorGroupData
Data required by UnfilteredOpenGroup(ActivityMonitorGroupData).
Inherited Members
Namespace: CK.Core
Assembly: CK.ActivityMonitor.dll
Syntax
public class ActivityMonitorGroupData : ActivityMonitorLogData
Constructors
| Improve this Doc View SourceActivityMonitorGroupData()
Initializes a mere new ActivityMonitorGroupData without any actual data. Should be used only for rejected opened group.
Declaration
public ActivityMonitorGroupData()
ActivityMonitorGroupData(LogLevel, CKTrait, String, DateTimeStamp, Exception, Func<String>, String, Int32)
Initializes a new ActivityMonitorGroupData.
Declaration
public ActivityMonitorGroupData(LogLevel level, CKTrait tags, string text, DateTimeStamp logTime, Exception exception, Func<string> getConclusionText, string fileName, int lineNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| LogLevel | level | Log level. Can not be None. |
| CK.Core.CKTrait | tags | Tags (from ActivityMonitor.Tags) to associate to the log. It will be union-ed with the current AutoTags. |
| String | text | Text of the log. Can be null or empty only if exception is not null: the Message is the text. |
| CK.Core.DateTimeStamp | logTime | Time of the log. You may use CK.Core.DateTimeStamp.UtcNow or NextLogTime(IActivityMonitor) extension method. |
| Exception | exception | Exception of the log. Can be null. |
| Func<String> | getConclusionText | Optional function that provides delayed obtention of the group conclusion: will be called on group closing. |
| String | fileName | Name of the source file that emitted the log. Can be null. |
| Int32 | lineNumber | Line number in the source file that emitted the log. |
ActivityMonitorGroupData(LogLevel, String, Int32)
Preinitializes a new ActivityMonitorLogData: Initialize(String, Exception, CKTrait, DateTimeStamp, Func<String>) has yet to be called.
Declaration
public ActivityMonitorGroupData(LogLevel level, string fileName, int lineNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| LogLevel | level | Log level. Can not be None. |
| String | fileName | Name of the source file that emitted the log. Can be null. |
| Int32 | lineNumber | Line number in the source file that emitted the log. |
Methods
| Improve this Doc View SourceInitialize(String, Exception, CKTrait, DateTimeStamp, Func<String>)
Initializes this group data.
Declaration
public void Initialize(string text, Exception exception, CKTrait tags, DateTimeStamp logTime, Func<string> getConclusionText)
Parameters
| Type | Name | Description |
|---|---|---|
| String | text | Text of the log. Can be null or empty only if exception is not null: the Message is the text. |
| Exception | exception | Exception of the log. Can be null. |
| CK.Core.CKTrait | tags | Tags (from ActivityMonitor.Tags) to associate to the log. It will be union-ed with the current AutoTags. |
| CK.Core.DateTimeStamp | logTime | Time of the log. You may use CK.Core.DateTimeStamp.UtcNow or NextLogTime(IActivityMonitor) extension method. |
| Func<String> | getConclusionText | Optional function that provides delayed obtention of the group conclusion: will be called on group closing. |