Modifica

Condividi tramite


DiagnosticSource Class

Definition

An abstract class that allows code to be instrumented for production-time logging of rich data payloads for consumption within the process that was instrumented.

public ref class DiagnosticSource abstract
public abstract class DiagnosticSource
type DiagnosticSource = class
Public MustInherit Class DiagnosticSource
Inheritance
DiagnosticSource
Derived

Remarks

For more information, see DiagnosticSource User's Guide.

Constructors

DiagnosticSource()

Initializes an instance of the DiagnosticSource class.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsEnabled(String, Object, Object)

Verifies it the notification event is enabled.

IsEnabled(String)

Verifies if the notification event is enabled.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnActivityExport(Activity, Object)

Transfers state from an activity to some event or operation, such as an outgoing HTTP request, that will occur outside the process.

OnActivityImport(Activity, Object)

Transfers state to an activity from some event or operation, such as an incoming request, that occurred outside the process.

StartActivity(Activity, Object)

Starts an Activity and writes a start event.

StartActivity<T>(Activity, T)
StopActivity(Activity, Object)

Stops the given Activity, maintains the global Current activity, and notifies consumers that the Activity was stopped.

StopActivity<T>(Activity, T)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
Write(String, Object)

Provides a generic way of logging complex payloads.

Write<T>(String, T)

Applies to