Table of Contents

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

asyncEvent AsyncEvent<TSender, TArgs>

Asynchronous event which threw the exception.

exception Exception

Exception that was thrown

handler AsyncEventHandler<TSender, TArgs>

Handler which threw the exception.

sender TSender

Object which dispatched the event.

eventArgs TArgs

Arguments with which the event was dispatched.

Type Parameters

TSender

Type of the object that dispatches this event.

TArgs

Type of the object which holds arguments for this event.

Extension Methods