C# Class CK.Core.ActivityMonitorPathCatcher

The "Path Catcher" captures the current path of the opened groups and the last, current, line and exposes it thanks to a read only list of PathElement (the DynamicPath property), plus two other specific paths, the LastErrorPath and the LastWarnOrErrorPath.
Inheritance: ActivityMonitorClient, IActivityMonitorBoundClient
Datei anzeigen Open project: Invenietis/ck-core

Public Methods

Method Description
ActivityMonitorPathCatcher ( ) : System

Initializes a new ActivityMonitorPathCatcher.

CheckSnapshot ( ) : void
ClearLastErrorPath ( ) : void

Clears current LastErrorPath (sets it to null).

ClearLastWarnPath ( bool clearLastErrorPath = false ) : void

Clears current LastWarnOrErrorPath (sets it to null), and optionally clears LastErrorPath.

HandleCurrentGroupIsClosed ( ) : void
IActivityMonitorBoundClient ( IActivityMonitorImpl source, bool forceBuggyRemove ) : void

Protected Methods

Method Description
OnGroupClosed ( IActivityLogGroup group, IReadOnlyList conclusions ) : void

Removes one or two last PathElement of DynamicPath.

OnOpenGroup ( IActivityLogGroup group ) : void

Appends or updates the last PathElement of DynamicPath and handles errors or warning.

OnUnfilteredLog ( ActivityMonitorLogData data ) : void

Appends or updates the last PathElement of DynamicPath and handles errors or warning.

Method Details

ActivityMonitorPathCatcher() public method

Initializes a new ActivityMonitorPathCatcher.
public ActivityMonitorPathCatcher ( ) : System
return System

CheckSnapshot() public method

public CheckSnapshot ( ) : void
return void

ClearLastErrorPath() public method

Clears current LastErrorPath (sets it to null).
public ClearLastErrorPath ( ) : void
return void

ClearLastWarnPath() public method

Clears current LastWarnOrErrorPath (sets it to null), and optionally clears LastErrorPath.
public ClearLastWarnPath ( bool clearLastErrorPath = false ) : void
clearLastErrorPath bool
return void

HandleCurrentGroupIsClosed() public method

public HandleCurrentGroupIsClosed ( ) : void
return void

IActivityMonitorBoundClient() public method

public IActivityMonitorBoundClient ( IActivityMonitorImpl source, bool forceBuggyRemove ) : void
source IActivityMonitorImpl
forceBuggyRemove bool
return void

OnGroupClosed() protected method

Removes one or two last PathElement of DynamicPath.
protected OnGroupClosed ( IActivityLogGroup group, IReadOnlyList conclusions ) : void
group IActivityLogGroup The closed group.
conclusions IReadOnlyList Texts that conclude the group. Never null but can be empty.
return void

OnOpenGroup() protected method

Appends or updates the last PathElement of DynamicPath and handles errors or warning.
protected OnOpenGroup ( IActivityLogGroup group ) : void
group IActivityLogGroup The newly opened .
return void

OnUnfilteredLog() protected method

Appends or updates the last PathElement of DynamicPath and handles errors or warning.
protected OnUnfilteredLog ( ActivityMonitorLogData data ) : void
data ActivityMonitorLogData Log data. Never null.
return void