C# Class Endjin.Assembly.ChangeDetection.Infrastructure.TracerConfig

Main Class to configure trace output devices. The default instance is basically a null device.
Inheritance: IDisposable
显示文件 Open project: endjin/Endjin.Assembly.ChangeDetection Class Usage Examples

Private Properties

Property Type Description
GetCurrentThreadId int
IsEnabled bool
TracerConfig System
WriteTraceMessage void

Public Methods

Method Description
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.

Private Methods

Method Description
GetCurrentThreadId ( ) : int
IsEnabled ( TypeHashes type, MessageTypes msgType, Level level ) : bool
TracerConfig ( string cfg ) : System
WriteTraceMessage ( string traceMsg ) : void

Method Details

Dispose() public method

Close the current active trace listeners in a thread safe way.
public Dispose ( ) : void
return void

Reset() public static method

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; ... ///
return string

Reset() public static method

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.
return string