Class RemotingRuntimeContextSlot<T>
- Namespace
- OpenTelemetry.Context
- Assembly
- OpenTelemetry.Api.dll
The .NET Remoting implementation of context slot.
public class RemotingRuntimeContextSlot<T> : RuntimeContextSlot<T>, IDisposable, IRuntimeContextSlotValueAccessor
Type Parameters
T
The type of the underlying value.
- Inheritance
-
RemotingRuntimeContextSlot<T>
- Implements
- Inherited Members
Constructors
RemotingRuntimeContextSlot(string)
Initializes a new instance of the RemotingRuntimeContextSlot<T> class.
public RemotingRuntimeContextSlot(string name)
Parameters
name
stringThe name of the context slot.
Properties
Value
Gets or sets the value of the slot as an object.
public object Value { get; set; }
Property Value
Methods
Get()
Get the value from the context slot.
public override T Get()
Returns
- T
The value retrieved from the context slot.
Set(T)
Set the value to the context slot.
public override void Set(T value)
Parameters
value
TThe value to be set.