C# Class Spring.Objects.Events.Support.EventRegistry

Default implementation of the Spring.Objects.Events.IEventRegistry interface.
Inheritance: IEventRegistry
Afficher le fichier Open project: spring-projects/spring-net

Méthodes publiques

Méthode Description
EventRegistry ( ) : System

Creates a new instance of the EventRegistry class.

PublishEvents ( object source ) : void

Adds the input object to the list of publishers.

This publishes all events of the source object to any object wishing to subscribe

Subscribe ( object subscriber ) : void

Subscribes to all events published, if the subscriber implements compatible handler methods.

Subscribe ( object subscriber, Type sourceType ) : void

Subscribes to published events of all objects of a given type, if the subscriber implements compatible handler methods.

Unsubscribe ( object subscriber ) : void

Unsubscribes to all events published, if the subscriber implmenets compatible handler methods.

Unsubscribe ( object subscriber, Type sourceType ) : void

Unsubscribes to the published events of all objects of a given System.Type, if the subscriber implements compatible handler methods.

Private Methods

Méthode Description
WireOrUnwireSubscriberToPublisher ( object currentPublisher, Type currentSubscriberType, object subscriber, bool wire ) : void

Method Details

EventRegistry() public méthode

Creates a new instance of the EventRegistry class.
public EventRegistry ( ) : System
Résultat System

PublishEvents() public méthode

Adds the input object to the list of publishers.
This publishes all events of the source object to any object wishing to subscribe
public PublishEvents ( object source ) : void
source object The source object to publish.
Résultat void

Subscribe() public méthode

Subscribes to all events published, if the subscriber implements compatible handler methods.
public Subscribe ( object subscriber ) : void
subscriber object The subscriber to use.
Résultat void

Subscribe() public méthode

Subscribes to published events of all objects of a given type, if the subscriber implements compatible handler methods.
public Subscribe ( object subscriber, Type sourceType ) : void
subscriber object The subscriber to use.
sourceType System.Type /// The target to subscribe to. ///
Résultat void

Unsubscribe() public méthode

Unsubscribes to all events published, if the subscriber implmenets compatible handler methods.
public Unsubscribe ( object subscriber ) : void
subscriber object The subscriber to use
Résultat void

Unsubscribe() public méthode

Unsubscribes to the published events of all objects of a given System.Type, if the subscriber implements compatible handler methods.
public Unsubscribe ( object subscriber, Type sourceType ) : void
subscriber object The subscriber to use.
sourceType System.Type The target to unsubscribe from
Résultat void