Event aggregator with sequential propagation.
More...
Event aggregator with sequential propagation.
◆ PublishAsync< T >()
Asynchronously publishes an event.
- Template Parameters
-
- Parameters
-
messageContext | An event message context. |
◆ Subscribe< T >()
object Subscribe< T > |
( |
Func< EventHandlerFunc< T >, EventHandlerFunc< T >> |
eventHandler | ) |
|
Subscribes to event of given type.
All event handlers are executed sequentially in order of subscription: The first handler passed to Subscribe will be the outermost function, and the last handler passed to Subscribe will be the innermost.
- Template Parameters
-
- Parameters
-
eventHandler | Function executed when event is published. |
- Returns
- Subscription object.
◆ Unsubscribe()
void Unsubscribe |
( |
object |
eventHandler | ) |
|
Unsubscribes event handler.
- Parameters
-
eventHandler | Event handler to unsubscribe. |
The documentation for this interface was generated from the following file: