AsyncEventHandlerExtensions

Name Value
Assembly Catel.Core
Namespace Catel
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public static class AsyncEventHandlerExtensions

Extensions for asynchronous event handlers.

Fields

Methods

SafeInvokeAsync(AsyncEventHandler handler, object sender, bool allowParallelExecution)

Invokes the specified handler

Parameters

Name Description
handler The handler.
sender The sender.
allowParallelExecution if set totrue, allow parallel invocation of the handlers.

Returns

Task<System.Boolean>.

SafeInvokeAsync(AsyncEventHandler handler, object sender, TEventArgs e, bool allowParallelExecution)

Invokes the specified handler

Type Parameters

TEventArgs The type of the class.

Parameters

Name Description
handler The handler.
sender The sender.
e The event args.
allowParallelExecution if set totrue, allow parallel invocation of the handlers.

Returns

Task<System.Boolean>.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion