Delegate AsyncEventExceptionHandler<TSender, TArgs>
Handles any exception raised by an AsyncEvent<TSender, TArgs> or its handlers.
Namespace: DisCatSharp.Common.Utilities
Assembly: DisCatSharp.Common.dll
Syntax
public delegate void AsyncEventExceptionHandler<TSender, TArgs>(AsyncEvent<TSender, TArgs> asyncEvent, Exception exception, AsyncEventHandler<TSender, TArgs> handler, TSender sender, TArgs eventArgs)
where TArgs : AsyncEventArgs;
Parameters
Type | Name | Description |
---|---|---|
AsyncEvent<TSender, TArgs> | asyncEvent | Asynchronous event which threw the exception. |
System.Exception | exception | Exception that was thrown |
AsyncEventHandler<TSender, TArgs> | handler | Handler which threw the exception. |
TSender | sender | Object which dispatched the event. |
TArgs | eventArgs | Arguments with which the event was dispatched. |
Type Parameters
Name | Description |
---|---|
TSender | Type of the object that dispatches this event. |
TArgs | Type of the object which holds arguments for this event. |