Delegate AsyncEventHandler<TEventArgs>
Delegate for asynchronous events.
Namespace: Fibula.Common.Contracts.Delegates
Assembly: Fibula.Common.Contracts.dll
Syntax
public delegate Task AsyncEventHandler<TEventArgs>(object sender, TEventArgs e, CancellationToken token);
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender of the event. |
TEventArgs | e | The event arguments. |
System.Threading.CancellationToken | token | A token to observe for cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous event. |
Type Parameters
Name | Description |
---|---|
TEventArgs | The type of event arguments. |