DistributedContextPropagator.ExtractBaggage 方法

定义

从由承运商表示的传入请求中提取行李键值对列表。 例如,从 HTTP 请求的标头。

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))

参数

carrier
Object

从中读取值的介质。

getter
DistributedContextPropagator.PropagatorGetterCallback

要调用以从运营商获取传播行李列表的回调方法。

返回

从运营商返回提取的键值对列表。

适用于