Edit

Bagikan melalui


DistributedContextPropagator.ExtractBaggage Method

Definition

Extracts the baggage key-value pair list from an incoming request represented by the carrier. For example, from the headers of an HTTP request.

public:
 abstract System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ ExtractBaggage(System::Object ^ carrier, System::Diagnostics::DistributedContextPropagator::PropagatorGetterCallback ^ getter);
public abstract System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>>? ExtractBaggage (object? carrier, System.Diagnostics.DistributedContextPropagator.PropagatorGetterCallback? getter);
abstract member ExtractBaggage : obj * System.Diagnostics.DistributedContextPropagator.PropagatorGetterCallback -> seq<System.Collections.Generic.KeyValuePair<string, string>>
Public MustOverride Function ExtractBaggage (carrier As Object, getter As DistributedContextPropagator.PropagatorGetterCallback) As IEnumerable(Of KeyValuePair(Of String, String))

Parameters

carrier
Object

The medium from which values will be read.

getter
DistributedContextPropagator.PropagatorGetterCallback

The callback method to invoke to get the propagation baggage list from the carrier.

Returns

Returns the extracted key-value pair list from the carrier.

Applies to