Delegate AsyncEventCollection<T>.CustomEventDelegate
Defines a delegate for custom event handlers that support asynchronous operations.
Namespace: Coree.NETStandard.Classes.AsyncEventCollection
Assembly: Coree.NETStandard.dll
Syntax
public delegate Task AsyncEventCollection<T>.CustomEventDelegate(object sender, ThreadSafeCollection<T> collection, CancellationToken cancellationToken, string dispatchKey)
Parameters
| Type | Name | Description |
|---|---|---|
| object | sender | The source of the event. |
| ThreadSafeCollection<T> | collection | The thread-safe collection associated with the event. |
| CancellationToken | cancellationToken | A cancellation token that can be used to cancel the event handling. |
| string | dispatchKey | A key used to identify the dispatch operation. |
Returns
| Type | Description |
|---|---|
| Task |