Class AsyncEventDictionary<TKey, TEventArgs>
A dictionary of event listeners keyed on a conditional parameter.
Inheritance
AsyncEventDictionary<TKey, TEventArgs>
Inherited Members
Namespace: LemonEdge.Utils
Assembly: LemonEdge.Utils.dll
Syntax
public class AsyncEventDictionary<TKey, TEventArgs> : EventDictionaryBase<TKey, AsyncEvent<TEventArgs>, Func<TEventArgs, Task>>
Type Parameters
| Name | Description |
|---|---|
| TKey | The key condition. |
| TEventArgs | The event argument. |
Constructors
AsyncEventDictionary()
Declaration
public AsyncEventDictionary()
Methods
OnChanged(TKey, TEventArgs)
Declaration
public Task OnChanged(TKey key, TEventArgs eventArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | |
| TEventArgs | eventArgs |
Returns
| Type | Description |
|---|---|
| Task |