C# Class CK.Monitoring.ParentedLogEntry

Parented log entry binds an entry to its parent group and can be a missing entry (a line or group opening or closing that we know it exists but have no data for it or only their ILogEntry.LogTime).
Datei anzeigen Open project: Invenietis/ck-core Class Usage Examples

Public Properties

Property Type Description
Entry ILogEntry
Parent ParentedLogEntry

Public Methods

Method Description
CollectPath ( Action collector, bool addThis = false ) : void

Collects the path of this ParentedLogEntry, optionally terminated with this entry.

GetPath ( List reusableBuffer, bool addThis = false ) : void

Collects path of ILogEntry in a reusable list (the buffer is cleared first).

Private Methods

Method Description
DoGetPath ( Action collector ) : void
ParentedLogEntry ( ParentedLogEntry parent, ILogEntry entry ) : CK.Core

Method Details

CollectPath() public method

Collects the path of this ParentedLogEntry, optionally terminated with this entry.
public CollectPath ( Action collector, bool addThis = false ) : void
collector Action Action for each item.
addThis bool Set it to true to append to also call the collector with this entry.
return void

GetPath() public method

Collects path of ILogEntry in a reusable list (the buffer is cleared first).
public GetPath ( List reusableBuffer, bool addThis = false ) : void
reusableBuffer List List that will be cleared and filled with parents.
addThis bool Set it to true to append to also add this entry.
return void

Property Details

Entry public_oe property

The entry itself.
public ILogEntry Entry
return ILogEntry

Parent public_oe property

Parent entry. Null when there is no group above.
public ParentedLogEntry,CK.Monitoring Parent
return ParentedLogEntry