CleanCode C# Libraries v0.9.23 API

StructuredTraceSource Members

StructuredTraceSource overview

Public Static Properties

SessionMarkerChar Gets or sets the character repeated to make a session marker.
SessionMarkerLength Gets or sets the length of the session marker.
BracketBarSize Gets or sets the size of the bracket bar used by the TraceBracket method.
CreateLabel Gets or sets the label indicating creation of a StructuredTraceSource object.
EnterLabel Gets or sets the label used by the TraceEnter and TraceEnterEventHandler methods.
LeaveLabel Gets or sets the label used by the TraceLeave and TraceLeaveEventHandler methods.
EventLabel Gets or sets the event handler label.

Public Instance Constructors

StructuredTraceSource Overloaded. Initializes a new instance of the StructuredTraceSource class.

Public Instance Properties

Attributes (inherited from TraceSource)Gets the custom switch attributes defined in the application configuration file.
CreateEventId Gets or sets the event ID associated with instantiating a StructuredTraceSource.
EnterEventId Gets or sets the event ID associated with entering a regular method (i.e. not an event handler method).
EventEnterEventId Gets or sets the event ID associated with entering an event handler method.
EventLeaveEventId Gets or sets the event ID associated with leaving an event handler method.
LeaveEventId Gets or sets the event ID associated with leaving a regular method (i.e. not an event handler method).
Listeners (inherited from TraceSource)Gets the collection of trace listeners for the trace source.
Name (inherited from TraceSource)Gets the name of the trace source.
Switch (inherited from TraceSource)Gets or sets the source switch value.

Public Instance Methods

Close (inherited from TraceSource)Closes all the trace listeners in the trace listener collection.
Dump Dumps the contents of this object, enumerating all TraceListeners and the associated TraceSwitch.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
Flush (inherited from TraceSource)Flushes all the trace listeners in the trace listener collection.
GetHashCode (inherited from Object)Serves as a hash function for a particular type.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.
TraceBracket Brackets the specified value with a hyphen on either side.
TraceData (inherited from TraceSource)Overloaded. Writes trace data to the trace listeners in the Listeners collection using the specified event type, event identifier, and trace data.
TraceEnter Traces entering the specified method name, and increases the indentation.
TraceEnterEventHandler Traces entering an event handler for a specific GUI component, and increases the indentation.
TraceEvent (inherited from TraceSource)Overloaded. Writes a trace event message to the trace listeners in the Listeners collection using the specified event type and event identifier.
TraceInformation (inherited from TraceSource)Overloaded. Writes an informational message to the trace listeners in the Listeners collection using the specified message.
TraceLeave Traces leaving the specified method name, and decreases the indentation.
TraceLeaveEventHandler Traces leaving an event handler for a specific GUI component, and decreases the indentation.
TraceTransfer (inherited from TraceSource)Writes a trace transfer message to the trace listeners in the Listeners collection using the specified numeric identifier, message, and related activity identifier.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

Protected Internal Instance Methods

GetSupportedAttributes (inherited from TraceSource)Gets the custom attributes supported by the trace source.

See Also

StructuredTraceSource Class | CleanCode.Diagnostics Namespace