C# Class CK.Core.ActivityMonitorBridgeTarget

This class used with ActivityMonitorBridge, enables IActivityMonitor to relay logs. Each activity monitor exposes such a bridge target on its output thanks to IActivityMonitorOutput.BridgeTarget.
Show file Open project: Invenietis/ck-core Class Usage Examples

Private Properties

Property Type Description
AddCallback void
GetTargetAndAutoTags void
RemoveCallback void
SetAutoTags void
SetTopic void
TargetActualFilterChanged void
TargetAutoTagsChanged void
TargetTopicChanged void

Public Methods

Method Description
ActivityMonitorBridgeTarget ( IActivityMonitorImpl targetMonitor, bool honorMonitorFilter = true ) : System

Initializes a new ActivityMonitorBridgeTarget bound to a IActivityMonitor.

Private Methods

Method Description
AddCallback ( IActivityMonitorBridgeCallback callback ) : void

Called by ActivityMonitorBridge.SetMonitor (the reentrant check is acquired).

GetTargetAndAutoTags ( string &targetTopic, CKTrait &targetTags ) : void
RemoveCallback ( IActivityMonitorBridgeCallback callback ) : void

Called by ActivityMonitorBridge.SetMonitor (the reentrant check is acquired).

SetAutoTags ( CKTrait tags ) : void
SetTopic ( string newTopic, string fileName, int lineNumber ) : void
TargetActualFilterChanged ( ) : void

This is called when HonorMonitorFilter changes or by ActivityMonitor.UpdateActualFilter whenever the monitors's ActualFilter changed (in such cases, we are bound to the activity: the Reentrancy and concurrency lock has been obtained), or by our monitor's SetClientMinimalFilterDirty() method (in this case, we are called on any thread).

TargetAutoTagsChanged ( CKTrait newTags ) : void
TargetTopicChanged ( string newTopic, string fileName, int lineNumber ) : void

Method Details

ActivityMonitorBridgeTarget() public method

Initializes a new ActivityMonitorBridgeTarget bound to a IActivityMonitor.
public ActivityMonitorBridgeTarget ( IActivityMonitorImpl targetMonitor, bool honorMonitorFilter = true ) : System
targetMonitor IActivityMonitorImpl Monitor that will receive the logs.
honorMonitorFilter bool /// False to ignore the actual filter value: logs coming from the bridge (ie. the remote Application Domain) /// will always be added to this target monitor. ///
return System