C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddCallback void
GetTargetAndAutoTags void
RemoveCallback void
SetAutoTags void
SetTopic void
TargetActualFilterChanged void
TargetAutoTagsChanged void
TargetTopicChanged void

Открытые методы

Метод Описание
ActivityMonitorBridgeTarget ( IActivityMonitorImpl targetMonitor, bool honorMonitorFilter = true ) : System

Initializes a new ActivityMonitorBridgeTarget bound to a IActivityMonitor.

Приватные методы

Метод Описание
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

Описание методов

ActivityMonitorBridgeTarget() публичный Метод

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. ///
Результат System