Class AsyncEventTimeoutException<TSender, TArgs>
- Namespace
- DisCatSharp.Common.Utilities
- Assembly
- DisCatSharp.Common.dll
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 sealed class AsyncEventTimeoutException<TSender, TArgs> : AsyncEventTimeoutException, ISerializable where TArgs : AsyncEventArgs
Type Parameters
TSender
Type of sender that dispatched this asynchronous event.
TArgs
Type of event arguments for the asynchronous event.
- Inheritance
-
AsyncEventTimeoutException<TSender, TArgs>
- Implements
- Inherited Members
- Extension Methods
Remarks
Creates a new timeout exception for specified event and handler.
Constructors
- 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.
Properties
- Event
Gets the event the invocation of which caused the timeout.
- Handler
Gets the handler which caused the timeout.