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
evtTEvent- Represents an event that can be published and subscribed to in the event bus system.
ctCancellationToken- 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