Interface IAsyncEvent
Marking interface that identifies a type as an asynchronous event and serves as the common base for all async event types.
public interface IAsyncEvent
- Extension Methods
Remarks
Implement this interface directly for simple notification-only events that carry no business data.
For events that need to carry strongly-typed business data, use AsyncEvent<TData> instead. For compound events (before/after pairs) that additionally need to share state between handlers, use CompoundAsyncEvent<TData> instead.
See Also
AsyncEvent<TData>
CompoundAsyncEvent<TData>
IAsyncEventHandler<TAsyncEvent>
AddEventHandler<TAsyncEvent, THandler>(IServiceCollection)