CKFinder 3 – ASP.NET Connector Documentation
IEventAggregator Interface Reference

Event aggregator with sequential propagation. More...

Public Member Functions

object Subscribe< T > (Func< EventHandlerFunc< T >, EventHandlerFunc< T >> eventHandler)
 Subscribes to event of given type. More...
 
void Unsubscribe (object eventHandler)
 Unsubscribes event handler. More...
 
Task PublishAsync< T > (MessageContext< T > messageContext)
 Asynchronously publishes an event. More...
 

Detailed Description

Event aggregator with sequential propagation.

Member Function Documentation

◆ PublishAsync< T >()

Task PublishAsync< T > ( MessageContext< T >  messageContext)

Asynchronously publishes an event.

Template Parameters
TA type of the event.
Parameters
messageContextAn event message context.
Type Constraints
T :EventBase 

◆ 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
TA type of the event.
Parameters
eventHandlerFunction executed when event is published.
Returns
Subscription object.
Type Constraints
T :EventBase 

◆ Unsubscribe()

void Unsubscribe ( object  eventHandler)

Unsubscribes event handler.

Parameters
eventHandlerEvent handler to unsubscribe.

The documentation for this interface was generated from the following file: