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

Class DelegateExtensions

Help methods on AsyncEventHandler.

Inheritance
System.Object
DelegateExtensions
Namespace: EPiServer.Async
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public static class DelegateExtensions : Object

Methods

InvokeAll<TEventArg>(AsyncEventHandler<TEventArg>, TEventArg)

Call or invoke all dynamically method represented by the current delegate one after one.

Declaration
public static Task InvokeAll<TEventArg>(this AsyncEventHandler<TEventArg> eventHandler, TEventArg args)
Parameters
Type Name Description
AsyncEventHandler<TEventArg> eventHandler

The async event handler

TEventArg args

The event arg.

Returns
Type Description
System.Threading.Tasks.Task
Type Parameters
Name Description
TEventArg

The event arg type.

InvokeAll<TEventArg>(AsyncEventHandler<TEventArg>, Object, TEventArg)

Call or invoke all dynamically method represented by the current delegate one after one.

Declaration
public static Task InvokeAll<TEventArg>(this AsyncEventHandler<TEventArg> eventHandler, object sender, TEventArg args)
Parameters
Type Name Description
AsyncEventHandler<TEventArg> eventHandler

The async event handler

System.Object sender

The sender.

TEventArg args

The event arg.

Returns
Type Description
System.Threading.Tasks.Task
Type Parameters
Name Description
TEventArg

The event arg type.