共用方式為


DistributedContextPropagator.Inject 方法

定義

將儲存在物件中的 Activity 追蹤值插入貨運公司。 例如,在 HTTP 要求的標頭中。

public:
 abstract void Inject(System::Diagnostics::Activity ^ activity, System::Object ^ carrier, System::Diagnostics::DistributedContextPropagator::PropagatorSetterCallback ^ setter);
public abstract void Inject (System.Diagnostics.Activity? activity, object? carrier, System.Diagnostics.DistributedContextPropagator.PropagatorSetterCallback? setter);
abstract member Inject : System.Diagnostics.Activity * obj * System.Diagnostics.DistributedContextPropagator.PropagatorSetterCallback -> unit
Public MustOverride Sub Inject (activity As Activity, carrier As Object, setter As DistributedContextPropagator.PropagatorSetterCallback)

參數

activity
Activity

Activity 物件具有要插入貨運公司之分散式內容。

carrier
Object

將儲存分散式內容的媒體。

setter
DistributedContextPropagator.PropagatorSetterCallback

要叫用以在電信業者上設定具名索引鍵/值組的回呼方法。

適用於