Table of Contents

Constructor AsyncEvent

Namespace
DisCatSharp.Common.Utilities
Assembly
DisCatSharp.Common.dll

AsyncEvent(string, TimeSpan, AsyncEventExceptionHandler<TSender, TArgs>?)

Implementation of asynchronous event. The handlers of such events are executed asynchronously, but sequentially.

public AsyncEvent(string name, TimeSpan maxExecutionTime, AsyncEventExceptionHandler<TSender, TArgs>? exceptionHandler)

Parameters

name string

Name of this event.

maxExecutionTime TimeSpan

Maximum handler execution time. A value of Zero means infinite.

exceptionHandler AsyncEventExceptionHandler<TSender, TArgs>

Delegate which handles exceptions caused by this event.

Remarks

Creates a new asynchronous event with specified name and exception handler.