<PackageReference Include="OpenTelemetry.Api" Version="1.15.0" />

OpenTelemetry.Context.RuntimeContextSlot<T>

public abstract class RuntimeContextSlot<T> : IDisposable
The abstract context slot.
namespace OpenTelemetry.Context { public abstract class RuntimeContextSlot<[System.Runtime.CompilerServices.Nullable(2)] T> : IDisposable { public string Name { get; } protected RuntimeContextSlot(string name); public abstract T Get(); public abstract void Set(T value); public void Dispose(); protected virtual void Dispose(bool disposing); } }