C# Класс Spring.Objects.Events.Support.EventRegistry

Default implementation of the Spring.Objects.Events.IEventRegistry interface.
Наследование: IEventRegistry
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
WireOrUnwireSubscriberToPublisher ( object currentPublisher, Type currentSubscriberType, object subscriber, bool wire ) : void

Описание методов

EventRegistry() публичный Метод

Creates a new instance of the EventRegistry class.
public EventRegistry ( ) : System
Результат System

PublishEvents() публичный Метод

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.
Результат void

Subscribe() публичный Метод

Subscribes to all events published, if the subscriber implements compatible handler methods.
public Subscribe ( object subscriber ) : void
subscriber object The subscriber to use.
Результат void

Subscribe() публичный Метод

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. ///
Результат void

Unsubscribe() публичный Метод

Unsubscribes to all events published, if the subscriber implmenets compatible handler methods.
public Unsubscribe ( object subscriber ) : void
subscriber object The subscriber to use
Результат void

Unsubscribe() публичный Метод

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
Результат void