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

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

Private Properties

Свойство Type Description
GetCurrentThreadId int
IsEnabled bool
TracerConfig System
WriteTraceMessage void

Méthodes publiques

Méthode 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

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

Method Details

Dispose() public méthode

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

Reset() public static méthode

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; ... ///
Résultat string

Reset() public static méthode

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.
Résultat string