C# Class SenseNet.Services.Instrumentation.TraceHelper

The TraceHelper is a static class provides several methods to help you trace your application.
Exibir arquivo Open project: maxpavlov/FlexNet Class Usage Examples

Public Methods

Method Description
TraceData ( TraceEventType eventType, int id ) : void

Writes trace data to the trace listeners in the Listeners collection.

TraceData ( TraceEventType eventType, int id, object data ) : void

Writes trace data to the trace listeners in the Listeners collection.

TraceEvent ( TraceEventType eventType, int id ) : void

Writes a trace event message to the trace listeners in the Listeners collection using the specified event type and event identifier.

TraceEvent ( TraceEventType eventType, int id, string message ) : void

Writes a trace event message to the trace listeners in the Listeners collection using the specified event type, event identifier, and message.

TraceInformation ( string message ) : void

Writes an informational message to the trace listeners in the Listeners collection using the specified message.

TraceTransfer ( int id, string message, System.Guid relatedActivity ) : void

Writes a trace transfer message to the trace listeners in the Listeners collection using the specified numeric identifier, message, and related activity identifier.

Private Methods

Method Description
GetCallerInfo ( ) : MethodBase
GetCallerSignature ( MethodBase caller ) : string
GetFormattedMessage ( string message, string methodSignature ) : string
GetTraceSource ( MethodBase caller ) : TraceSource
TraceFrameEvent ( TraceFrameEventType eventType, TraceFrame traceFrame ) : void
TraceInformationPrivate ( string message, MethodBase caller ) : void

Method Details

TraceData() public static method

Writes trace data to the trace listeners in the Listeners collection.
public static TraceData ( TraceEventType eventType, int id ) : void
eventType TraceEventType One of the TraceEventType values that specifies the event type of the trace data.
id int A numeric identifier for the event.
return void

TraceData() public static method

Writes trace data to the trace listeners in the Listeners collection.
public static TraceData ( TraceEventType eventType, int id, object data ) : void
eventType TraceEventType One of the TraceEventType values that specifies the event type of the trace data.
id int A numeric identifier for the event.
data object The trace data.
return void

TraceEvent() public static method

Writes a trace event message to the trace listeners in the Listeners collection using the specified event type and event identifier.
public static TraceEvent ( TraceEventType eventType, int id ) : void
eventType TraceEventType One of the TraceEventType values that specifies the event type of the trace data.
id int A numeric identifier for the event.
return void

TraceEvent() public static method

Writes a trace event message to the trace listeners in the Listeners collection using the specified event type, event identifier, and message.
public static TraceEvent ( TraceEventType eventType, int id, string message ) : void
eventType TraceEventType One of the TraceEventType values that specifies the event type of the trace data.
id int A numeric identifier for the event.
message string The trace message to write.
return void

TraceInformation() public static method

Writes an informational message to the trace listeners in the Listeners collection using the specified message.
public static TraceInformation ( string message ) : void
message string The informative message to write.
return void

TraceTransfer() public static method

Writes a trace transfer message to the trace listeners in the Listeners collection using the specified numeric identifier, message, and related activity identifier.
public static TraceTransfer ( int id, string message, System.Guid relatedActivity ) : void
id int A numeric identifier for the event.
message string The trace message to write.
relatedActivity System.Guid A Guid structure that identifies the related activity.
return void