Skip to end of metadata
Go to start of metadata

Represents the trace service.

Definition

public class TraceService : ITraceService

Summary

The following table summarizes the members exposed in this class.

Public Constructors

TraceService Constructor() Initializes a new instance of the TraceService class.

Public Methods

FlushContextItems() Flushes the context items.
GetActivityId() Gets the activity identifier.
GetCallStack() Gets the call stack.
GetCurrentProcessId() Gets the current process identifier.
GetCurrentThreadId() Gets the current thread identifier.
GetCurrentThreadName() Gets the name of the current thread.
GetExecutingMethodName() Gets the name of the executing method.
GetLogicalOperationStack() Gets the logical operation stack.
GetModuleFileName() Gets the name of the module file.
GetProcessId() Gets the process identifier.
GetProcessName() Gets the name of the process.
PeekLogicalOperationStack() Peeks the logical operation stack.
ProcessContextItems(LogEntry) Processes the context items.
SetActivityId(Guid) Sets the activity identifier.
SetContextItem(object, object) Sets the context item.
StartLogicalOperation(string) Starts the logical operation.
StopLogicalOperation() Stops the logical operation.

Public Constructors

public TraceService()

Public Methods

public void FlushContextItems()

Flushes the context items.

public Guid GetActivityId()

Gets the activity identifier.

public string GetCallStack()

Gets the call stack.

public string GetCurrentProcessId()

Gets the current process identifier.

public string GetCurrentThreadId()

Gets the current thread identifier.

public string GetCurrentThreadName()

Gets the name of the current thread.

public string GetExecutingMethodName()

Gets the name of the executing method.

public IEnumerable GetLogicalOperationStack()

Gets the logical operation stack.

public string GetModuleFileName()

Gets the name of the module file.

public int GetProcessId()

Gets the process identifier.

public string GetProcessName()

Gets the name of the process.

public object PeekLogicalOperationStack()

Peeks the logical operation stack.

public void ProcessContextItems(LogEntry log)

Processes the context items.

Parameters

log The log.

public void SetActivityId(Guid activityId)

Sets the activity identifier.

Parameters

activityId The activity identifier.

public void SetContextItem(object key, object value)

Sets the context item.

Parameters

key The key.
value The value.

public void StartLogicalOperation(string operation)

Starts the logical operation.

Parameters

operation The operation.

public void StopLogicalOperation()

Stops the logical operation.

  • No labels