Table of Contents

Interface IAsynchronousTraceListener

Namespace
Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners
Assembly
Microsoft.Practices.EnterpriseLibrary.Logging.dll

Implements asynchronous tracing.

public interface IAsynchronousTraceListener

Methods

Flush(ReportTracingError)

Flushes the output buffer asynchronously.

void Flush(ReportTracingError reportError)

Parameters

reportError ReportTracingError

The delegate to use to report errors while tracing asynchronously.

TraceData(TraceEventCache, string, TraceEventType, int, object, ReportTracingError)

Writes trace information, a data object and event information to the listener specific output.

void TraceData(TraceEventCache eventCache, string source, TraceEventType eventType, int id, object data, ReportTracingError reportError)

Parameters

eventCache TraceEventCache

A TraceEventCache object that contains the current process ID, thread ID, and stack trace information.

source string

A name used to identify the output, typically the name of the application that generated the trace event.

eventType TraceEventType

One of the TraceEventType values specifying the type of event that has caused the trace.

id int

A numeric identifier for the event.

data object

The trace data to emit.

reportError ReportTracingError

The delegate to use to report errors while tracing asynchronously.

TraceTransfer(TraceEventCache, string, int, string, Guid, ReportTracingError)

Writes trace information, a message, a related activity identity and event information to the listener specific output.

void TraceTransfer(TraceEventCache eventCache, string source, int id, string message, Guid relatedActivityId, ReportTracingError reportError)

Parameters

eventCache TraceEventCache

A TraceEventCache object that contains the current process ID, thread ID, and stack trace information.

source string

A name used to identify the output, typically the name of the application that generated the trace event.

id int

A numeric identifier for the event.

message string

A message to write.

relatedActivityId Guid

A Guid object identifying a related activity.

reportError ReportTracingError

The delegate to use to report errors while tracing asynchronously.