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
stringName of this event.
maxExecutionTime
TimeSpanMaximum 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.