Edit

Share via


DistributedContextPropagator.PropagatorSetterCallback Delegate

Definition

Represents the callback method that's used in propagators' inject methods. This callback is invoked to set the value of a named field. Propagators may invoke it multiple times in order to set multiple fields.

C#
public delegate void DistributedContextPropagator.PropagatorSetterCallback(object? carrier, string fieldName, string fieldValue);

Parameters

carrier
Object

The medium used by propagators to write values to.

fieldName
String

The propagation field name.

fieldValue
String

The value corresponding to fieldName.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

Product Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)