Click or drag to resize

ContextVarT Class

Provides a stack-like object that can be used to maintain the state of a thread-local value. Unlike a pure threadstatic variable a ContextVar can have multiple values that can be stacked.
Inheritance Hierarchy
SystemObject
  com.espertech.esper.compatContextVarT

Namespace:  com.espertech.esper.compat
Assembly:  NEsper.Compat (in NEsper.Compat.dll) Version: 8.0.0.0
Syntax
C#
public class ContextVar<T> : IDisposable

Type Parameters

T

The ContextVarT type exposes the following members.

Constructors
  NameDescription
Public methodContextVarT
Initializes a new instance of the ContextVarT class.
Top
Properties
  NameDescription
Public propertyStatic memberCurrent
Gets the current value associated with the context.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Top
See Also