Delegate EventHandler<TEvent>
Represents an event that can be published and subscribed to in the event bus system.
public delegate ValueTask EventHandler<in TEvent>(TEvent evt, CancellationToken ct = default) where TEvent : IEvent
Parameters
evt
TEvent- Represents an event that can be published and subscribed to in the event bus system.
ct
CancellationToken- Represents an event that can be published and subscribed to in the event bus system.
Returns
- ValueTask
- Represents an event that can be published and subscribed to in the event bus system.
Type Parameters
TEvent
- Extension Methods