C# 클래스 Spring.Objects.Events.Support.EventRegistry

Default implementation of the Spring.Objects.Events.IEventRegistry interface.
상속: IEventRegistry
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
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