Class AsyncLocal<T>
- Namespace
- Microsoft.VisualStudio.Threading
- Assembly
- Microsoft.VisualStudio.Threading.dll
Stores references such that they are available for retrieval in the same call context.
public class AsyncLocal<T> where T : class
Type Parameters
T
The type of value to store.
- Inheritance
-
AsyncLocal<T>
- Inherited Members
Constructors
AsyncLocal()
Initializes a new instance of the AsyncLocal<T> class.
public AsyncLocal()
Properties
Value
Gets or sets the value to associate with the current CallContext.
public T? Value { get; set; }
Property Value
- T