閱讀英文 編輯

共用方式為


DiagnosticListener.OnActivityExport(Activity, Object) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Invokes the OnActivityExport method of all the subscribers.

C#
public override void OnActivityExport(System.Diagnostics.Activity activity, object? payload);
C#
public override void OnActivityExport(System.Diagnostics.Activity activity, object payload);

Parameters

activity
Activity

The activity affected by an external event.

payload
Object

An object that represents the outgoing request.

Applies to

產品 版本
.NET Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)