Delegate AsyncEventExceptionHandler<TSender, TArgs>
- Namespace
- DisCatSharp.Common.Utilities
- Assembly
- DisCatSharp.Common.dll
Handles any exception raised by an AsyncEvent<TSender, TArgs> or its handlers.
public delegate void AsyncEventExceptionHandler<TSender, TArgs>(AsyncEvent<TSender, TArgs> asyncEvent, Exception exception, AsyncEventHandler<TSender, TArgs> handler, TSender sender, TArgs eventArgs) where TArgs : AsyncEventArgs
Parameters
asyncEventAsyncEvent<TSender, TArgs>Asynchronous event which threw the exception.
exceptionExceptionException that was thrown
handlerAsyncEventHandler<TSender, TArgs>Handler which threw the exception.
senderTSenderObject which dispatched the event.
eventArgsTArgsArguments with which the event was dispatched.
Type Parameters
TSenderType of the object that dispatches this event.
TArgsType of the object which holds arguments for this event.
- Extension Methods