C# Класс CK.Core.ActivityMonitorTextWriterClient

Formats the activity and pushes piece of texts to an Action{T} where T is a string.
Наследование: ActivityMonitorTextHelperClient
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ActivityMonitorTextWriterClient ( Action writer ) : System

Initializes a new ActivityMonitorTextWriterClient bound to a function that must write a string.

ActivityMonitorTextWriterClient ( Action writer, LogFilter filter ) : System

Initializes a new ActivityMonitorTextWriterClient bound to a function that must write a string, with a filter.

DumpException ( StringBuilder w, string prefix, bool displayMessage, Exception ex ) : void

Recursively dumps an Exception as readable text.

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

Метод Описание
OnContinueOnSameLevel ( ActivityMonitorLogData data ) : void

Writes all information.

OnEnterLevel ( ActivityMonitorLogData data ) : void

Writes all the information.

OnGroupClose ( IActivityLogGroup g, IReadOnlyList conclusions ) : void

Writes group conclusion and updates internally managed line prefix.

OnGroupOpen ( IActivityLogGroup g ) : void

Writes a group opening.

OnLeaveLevel ( LogLevel level ) : void

Updates the internally maintained prefix for lines.

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

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

Initializes a new ActivityMonitorTextWriterClient bound to a function that must write a string.
public ActivityMonitorTextWriterClient ( Action writer ) : System
writer Action Function that writes the content.
Результат System

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

Initializes a new ActivityMonitorTextWriterClient bound to a function that must write a string, with a filter.
public ActivityMonitorTextWriterClient ( Action writer, LogFilter filter ) : System
writer Action Function that writes the content.
filter LogFilter Filter to apply
Результат System

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

Recursively dumps an Exception as readable text.
static public DumpException ( StringBuilder w, string prefix, bool displayMessage, Exception ex ) : void
w StringBuilder The TextWriter to write to.
prefix string Prefix that will start all lines.
displayMessage bool Whether the exception message must be displayed or skip.
ex System.Exception The exception to display.
Результат void

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

Writes all information.
protected OnContinueOnSameLevel ( ActivityMonitorLogData data ) : void
data ActivityMonitorLogData Log data.
Результат void

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

Writes all the information.
protected OnEnterLevel ( ActivityMonitorLogData data ) : void
data ActivityMonitorLogData Log data.
Результат void

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

Writes group conclusion and updates internally managed line prefix.
protected OnGroupClose ( IActivityLogGroup g, IReadOnlyList conclusions ) : void
g IActivityLogGroup Group that must be closed.
conclusions IReadOnlyList Conclusions for the group.
Результат void

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

Writes a group opening.
protected OnGroupOpen ( IActivityLogGroup g ) : void
g IActivityLogGroup Group information.
Результат void

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

Updates the internally maintained prefix for lines.
protected OnLeaveLevel ( LogLevel level ) : void
level LogLevel Previous level.
Результат void