DiagnosticSource DiagnosticSource DiagnosticSource 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
DiagnosticSourceDiagnosticSourceDiagnosticSourceDiagnosticSource
Derived

Remarks

For more information, see DiagnosticSource User's Guide.

Constructors

DiagnosticSource() DiagnosticSource() DiagnosticSource() DiagnosticSource()

Initializes an instance of the DiagnosticSource class.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

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

Verifies if the notification event is enabled.

IsEnabled(String, Object, Object) IsEnabled(String, Object, Object) IsEnabled(String, Object, Object) IsEnabled(String, Object, Object)

Verifies it the notification event is enabled.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnActivityExport(Activity, Object) OnActivityExport(Activity, Object) OnActivityExport(Activity, 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) OnActivityImport(Activity, Object) OnActivityImport(Activity, Object) 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) StartActivity(Activity, Object) StartActivity(Activity, Object) StartActivity(Activity, Object)

Starts an Activity and writes a start event.

StopActivity(Activity, Object) StopActivity(Activity, Object) StopActivity(Activity, Object) StopActivity(Activity, Object)

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

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Write(String, Object) Write(String, Object) Write(String, Object) Write(String, Object)

Provides a generic way of logging complex payloads.

Applies to