CK-Text CK-Text
    Show / Hide Table of Contents

    Class ActivityMonitorGroupData

    Data required by UnfilteredOpenGroup(ActivityMonitorGroupData).

    Inheritance
    Object
    ActivityMonitorLogData
    ActivityMonitorGroupData
    Inherited Members
    ActivityMonitorLogData.Level
    ActivityMonitorLogData.MaskedLevel
    ActivityMonitorLogData.FileName
    ActivityMonitorLogData.LineNumber
    ActivityMonitorLogData.IsFilteredLog
    ActivityMonitorLogData.Tags
    ActivityMonitorLogData.Text
    ActivityMonitorLogData.LogTime
    ActivityMonitorLogData.Exception
    ActivityMonitorLogData.ExceptionData
    ActivityMonitorLogData.EnsureExceptionData()
    ActivityMonitorLogData.IsTextTheExceptionMessage
    ActivityMonitorLogData.Initialize(String, Exception, CKTrait, DateTimeStamp)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: CK.Core
    Assembly: CK.ActivityMonitor.dll
    Syntax
    public class ActivityMonitorGroupData : ActivityMonitorLogData

    Constructors

    | Improve this Doc View Source

    ActivityMonitorGroupData()

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

    Declaration
    public ActivityMonitorGroupData()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 Source

    Initialize(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.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2015-2017 Invenietis
    Generated by DocFX