C# Class Caliburn.Micro.EventAggregator

Enables loosely-coupled publication of and subscription to events.
Inheritance: IEventAggregator
Afficher le fichier Open project: bryanhunter/CaliburnMicroTalk Class Usage Examples

Méthodes publiques

Méthode Description
Publish ( object message, Action marshal = null ) : void

Publishes a message.

Subscribe ( object instance ) : void

Subscribes an instance to all events declared through implementations of IHandle{T}

Unsubscribe ( object instance ) : void

Unsubscribes the instance from all events.

Method Details

Publish() public méthode

Publishes a message.
public Publish ( object message, Action marshal = null ) : void
message object The message instance.
marshal Action Allows the publisher to provide a custom thread marshaller for the message publication. The default uses the UI thread marshaller.
Résultat void

Subscribe() public méthode

Subscribes an instance to all events declared through implementations of IHandle{T}
public Subscribe ( object instance ) : void
instance object The instance to subscribe for event publication.
Résultat void

Unsubscribe() public méthode

Unsubscribes the instance from all events.
public Unsubscribe ( object instance ) : void
instance object The instance to unsubscribe.
Résultat void