November Happy Hour will be moved to Thursday December 5th.

Class AsyncEventHandler<TEventArgs>

async event handler

Inheritance
System.Object
AsyncEventHandler<TEventArgs>
Namespace: EPiServer.Async
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public sealed class AsyncEventHandler<TEventArgs> : MulticastDelegate
Type Parameters
Name Description
TEventArgs

Type of event arg

Constructors

AsyncEventHandler(Object, IntPtr)

Declaration
public AsyncEventHandler(object object, IntPtr method)
Parameters
Type Name Description
System.Object object
System.IntPtr method

Methods

BeginInvoke(Object, TEventArgs, AsyncCallback, Object)

Declaration
public virtual IAsyncResult BeginInvoke(object sender, TEventArgs e, AsyncCallback callback, object object)
Parameters
Type Name Description
System.Object sender
TEventArgs e
System.AsyncCallback callback
System.Object object
Returns
Type Description
System.IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public virtual Task EndInvoke(IAsyncResult result)
Parameters
Type Name Description
System.IAsyncResult result
Returns
Type Description
System.Threading.Tasks.Task

Invoke(Object, TEventArgs)

Declaration
public virtual Task Invoke(object sender, TEventArgs e)
Parameters
Type Name Description
System.Object sender
TEventArgs e
Returns
Type Description
System.Threading.Tasks.Task

Extension Methods