C# 클래스 Illusion.EventAggregator

Enables loosely-coupled publication of and subscription to events.
상속: IEventAggregator
파일 보기 프로젝트 열기: kasicass/kasicass

공개 프로퍼티들

프로퍼티 타입 설명
DefaultPublicationThreadMarshaller Action

공개 메소드들

메소드 설명
EventAggregator ( ) : System

Initializes a new instance of the EventAggregator class.

Publish ( object message ) : void

Publishes a message.

Does not marshall the the publication to any special thread by default.

Publish ( object message, Action marshal ) : 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.

메소드 상세

EventAggregator() 공개 메소드

Initializes a new instance of the EventAggregator class.
public EventAggregator ( ) : System
리턴 System

Publish() 공개 메소드

Publishes a message.
Does not marshall the the publication to any special thread by default.
public Publish ( object message ) : void
message object The message instance.
리턴 void

Publish() 공개 메소드

Publishes a message.
public Publish ( object message, Action marshal ) : void
message object The message instance.
marshal Action Allows the publisher to provide a custom thread marshaller for the message publication.
리턴 void

Subscribe() 공개 메소드

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.
리턴 void

Unsubscribe() 공개 메소드

Unsubscribes the instance from all events.
public Unsubscribe ( object instance ) : void
instance object The instance to unsubscribe.
리턴 void

프로퍼티 상세

DefaultPublicationThreadMarshaller 공개적으로 정적으로 프로퍼티

The default thread marshaller used for publication;
public static Action DefaultPublicationThreadMarshaller
리턴 Action