C# Класс CK.Monitoring.GrandOutputHandlers.HandlerBase

Base class to handle of GrandOutputEventInfo. Specialized handlers are configured by an associated HandlerConfiguration specialization.
Наследование: IGrandOutputSink
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Close ( IActivityMonitor monitor ) : void

Closes this handler. This is called when a reconfiguration occurs after all events have been Handled. Default implementation does nothing.

CollectChannelOption ( ChannelOption option ) : void

Enables this handler to interact with any channel to which it belongs. This is called after Initialize and for each channel where this handler appears, before the first call to Handle. Default implementation must be called: sets the minimal filter on the option if the HandlerConfiguration defines it.

Handle ( GrandOutputEventInfo logEvent, bool parrallelCall ) : void

Handles a GrandOutputEventInfo.

Initialize ( IActivityMonitor monitor ) : void

Initializes this handler. This is called once for all the configured sink at the start of a new configuration, before the first call to Handle. Default implementation does nothing.

Защищенные методы

Метод Описание
HandlerBase ( HandlerConfiguration config ) : CK.Core

Base constructor bound to base configuration object.

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

Метод Описание
HandlerBase ( CK config ) : CK.Core

Internal constructor used by Sequence and Parallel.

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

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

Closes this handler. This is called when a reconfiguration occurs after all events have been Handled. Default implementation does nothing.
public Close ( IActivityMonitor monitor ) : void
monitor IActivityMonitor The monitor that tracks configuration process.
Результат void

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

Enables this handler to interact with any channel to which it belongs. This is called after Initialize and for each channel where this handler appears, before the first call to Handle. Default implementation must be called: sets the minimal filter on the option if the HandlerConfiguration defines it.
public CollectChannelOption ( ChannelOption option ) : void
option ChannelOption
Результат void

Handle() публичный абстрактный Метод

Handles a GrandOutputEventInfo.
public abstract Handle ( GrandOutputEventInfo logEvent, bool parrallelCall ) : void
logEvent GrandOutputEventInfo Event to handle.
parrallelCall bool True when this method is called in parallel with other handlers.
Результат void

HandlerBase() защищенный Метод

Base constructor bound to base configuration object.
protected HandlerBase ( HandlerConfiguration config ) : CK.Core
config HandlerConfiguration The configuration object.
Результат CK.Core

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

Initializes this handler. This is called once for all the configured sink at the start of a new configuration, before the first call to Handle. Default implementation does nothing.
public Initialize ( IActivityMonitor monitor ) : void
monitor IActivityMonitor The monitor that tracks configuration process.
Результат void