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
Afficher le fichier Open project: Invenietis/ck-core

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

Initializes a new ActivityMonitorPathCatcher.
public ActivityMonitorPathCatcher ( ) : System
Résultat System

CheckSnapshot() public méthode

public CheckSnapshot ( ) : void
Résultat void

ClearLastErrorPath() public méthode

Clears current LastErrorPath (sets it to null).
public ClearLastErrorPath ( ) : void
Résultat void

ClearLastWarnPath() public méthode

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

HandleCurrentGroupIsClosed() public méthode

public HandleCurrentGroupIsClosed ( ) : void
Résultat void

IActivityMonitorBoundClient() public méthode

public IActivityMonitorBoundClient ( IActivityMonitorImpl source, bool forceBuggyRemove ) : void
source IActivityMonitorImpl
forceBuggyRemove bool
Résultat void

OnGroupClosed() protected méthode

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.
Résultat void

OnOpenGroup() protected méthode

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

OnUnfilteredLog() protected méthode

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