Constructor AsyncEventTimeoutException
- Namespace
- DisCatSharp.Common.Utilities
- Assembly
- DisCatSharp.Common.dll
AsyncEventTimeoutException(AsyncEvent, AsyncEventHandler<TSender, TArgs>)
Thrown whenever execution of an AsyncEventHandler<TSender, TArgs> exceeds maximum time allowed.
This is a non-fatal exception, used primarily to inform users that their code is taking too long to execute.
public AsyncEventTimeoutException(AsyncEvent asyncEvent, AsyncEventHandler<TSender, TArgs> eventHandler)
Parameters
asyncEventAsyncEventEvent the execution of which timed out.
eventHandlerAsyncEventHandler<TSender, TArgs>Handler which timed out.
Remarks
Creates a new timeout exception for specified event and handler.