C# 클래스 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.
상속: ActivityMonitorClient, IActivityMonitorBoundClient
파일 보기 프로젝트 열기: Invenietis/ck-core

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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.

메소드 상세

ActivityMonitorPathCatcher() 공개 메소드

Initializes a new ActivityMonitorPathCatcher.
public ActivityMonitorPathCatcher ( ) : System
리턴 System

CheckSnapshot() 공개 메소드

public CheckSnapshot ( ) : void
리턴 void

ClearLastErrorPath() 공개 메소드

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

ClearLastWarnPath() 공개 메소드

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

HandleCurrentGroupIsClosed() 공개 메소드

public HandleCurrentGroupIsClosed ( ) : void
리턴 void

IActivityMonitorBoundClient() 공개 메소드

public IActivityMonitorBoundClient ( IActivityMonitorImpl source, bool forceBuggyRemove ) : void
source IActivityMonitorImpl
forceBuggyRemove bool
리턴 void

OnGroupClosed() 보호된 메소드

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.
리턴 void

OnOpenGroup() 보호된 메소드

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

OnUnfilteredLog() 보호된 메소드

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