Method InvokeAsync
- Namespace
- DisCatSharp.Common.Utilities
- Assembly
- DisCatSharp.Common.dll
InvokeAsync(TSender, TArgs, AsyncEventExceptionMode)
Raises this event by invoking all of its registered handlers, in order of registration.
All exceptions throw during invocation will be handled by the event's registered exception handler.
public Task InvokeAsync(TSender sender, TArgs e, AsyncEventExceptionMode exceptionMode = AsyncEventExceptionMode.Default)
Parameters
sender
TSenderObject which raised this event.
e
TArgsArguments for this event.
exceptionMode
AsyncEventExceptionModeDefines what to do with exceptions caught from handlers.