C# Класс Endjin.Assembly.ChangeDetection.Infrastructure.TracerConfig

Main Class to configure trace output devices. The default instance is basically a null device.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetCurrentThreadId int
IsEnabled bool
TracerConfig System
WriteTraceMessage void

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

Метод Описание
Dispose ( ) : void

Close the current active trace listeners in a thread safe way.

Reset ( string cfg ) : string

Re/Set trace configuration in a thread safe way by shutting down the already existing listeners and then put the new config into place.

Reset ( string cfg, bool bClearEvents ) : string

Re/Set trace configuration in a thread safe way by shutting down the already existing listeners and then put the new config into place.

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

Метод Описание
GetCurrentThreadId ( ) : int
IsEnabled ( TypeHashes type, MessageTypes msgType, Level level ) : bool
TracerConfig ( string cfg ) : System
WriteTraceMessage ( string traceMsg ) : void

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

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

Close the current active trace listeners in a thread safe way.
public Dispose ( ) : void
Результат void

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

Re/Set trace configuration in a thread safe way by shutting down the already existing listeners and then put the new config into place.
public static Reset ( string cfg ) : string
cfg string /// The trace string format is of the form OutputDevice;TypeFilter MessageFilter; TypeFilter /// MessageFilter; ... ///
Результат string

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

Re/Set trace configuration in a thread safe way by shutting down the already existing listeners and then put the new config into place.
public static Reset ( string cfg, bool bClearEvents ) : string
cfg string /// The trace string format is of the form OutputDevice;TypeFilter MessageFilter; TypeFilter /// MessageFilter; ... ///
bClearEvents bool if true all registered trace callbacks are removed.
Результат string