mscorlib(4.0.0.0) API with additions
System.Threading.AsyncLocal< T > Class Template Reference

Represents ambient data that is local to a given asynchronous control flow, such as an asynchronous method. More...

Inheritance diagram for System.Threading.AsyncLocal< T >:
[legend]

Public Member Functions

 AsyncLocal ()
 Instantiates an T:System.Threading.AsyncLocal`1 instance that does not receive change notifications. More...
 
 AsyncLocal (Action< AsyncLocalValueChangedArgs< T >> valueChangedHandler)
 Instantiates an T:System.Threading.AsyncLocal`1 local instance that receives change notifications. More...
 

Properties

Value [get, set]
 Gets or sets the value of the ambient data. More...
 

Detailed Description

Represents ambient data that is local to a given asynchronous control flow, such as an asynchronous method.

Template Parameters
TThe type of the ambient data.

Definition at line 8 of file AsyncLocal.cs.

Constructor & Destructor Documentation

◆ AsyncLocal() [1/2]

Instantiates an T:System.Threading.AsyncLocal`1 instance that does not receive change notifications.

Definition at line 39 of file AsyncLocal.cs.

◆ AsyncLocal() [2/2]

Instantiates an T:System.Threading.AsyncLocal`1 local instance that receives change notifications.

Parameters
valueChangedHandlerThe delegate that is called whenever the current value changes on any thread.

Definition at line 47 of file AsyncLocal.cs.

Property Documentation

◆ Value

T System.Threading.AsyncLocal< T >.Value
getset

Gets or sets the value of the ambient data.

Returns
The value of the ambient data.

Definition at line 17 of file AsyncLocal.cs.


The documentation for this class was generated from the following file: