DistributedContextPropagator.Inject 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.
Injects the trace values stored in the Activity object into a carrier. For example, into the headers of an HTTP request.
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)
Parameters
- activity
- Activity
The Activity object has the distributed context to inject to the carrier.
- carrier
- Object
The medium in which the distributed context will be stored.
The callback method to invoke to set a named key-value pair on the carrier.
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา