AsyncLocal<T> AsyncLocal<T> AsyncLocal<T> AsyncLocal<T> Constructors

Definition

Overloads

AsyncLocal<T>() AsyncLocal<T>() AsyncLocal<T>()

Instantiates an AsyncLocal<T> instance that does not receive change notifications.

AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>)

Instantiates an AsyncLocal<T> local instance that receives change notifications.

AsyncLocal<T>() AsyncLocal<T>() AsyncLocal<T>()

Instantiates an AsyncLocal<T> instance that does not receive change notifications.

public:
 AsyncLocal();
public AsyncLocal ();
Public Sub New ()

AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>)

Instantiates an AsyncLocal<T> local instance that receives change notifications.

public:
 AsyncLocal(Action<System::Threading::AsyncLocalValueChangedArgs<T>> ^ valueChangedHandler);
[System.Security.SecurityCritical]
public AsyncLocal (Action<System.Threading.AsyncLocalValueChangedArgs<T>> valueChangedHandler);
new System.Threading.AsyncLocal<'T> : Action<System.Threading.AsyncLocalValueChangedArgs<'T>> -> System.Threading.AsyncLocal<'T>
Public Sub New (valueChangedHandler As Action(Of AsyncLocalValueChangedArgs(Of T)))

Parameters

valueChangedHandler
Action<AsyncLocalValueChangedArgs<T>>

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

Remarks

The delegate's signature is Action<ASyncLocalValueChangedArgs<T>.

See also

Applies to