C# 클래스 EducationPathways.ServiceBus.EventBus

An event bus that sends serialized object payloads through a IMessageSender.
Note that Infrastructure.EventSourcing.IEventSourced entities persisted through the IEventSourcedRepository{T} do not use the IEventBus, but has its own event publishing mechanism.
상속: IEventBus
파일 보기 프로젝트 열기: pebblecode/EducationPathways 1 사용 예제들

공개 메소드들

메소드 설명
EventBus ( IMessageSender sender, IMetadataProvider metadataProvider, ITextSerializer serializer ) : System.Collections.Generic

Initializes a new instance of the EventBus class.

Publish ( Envelope @event ) : void

Sends the specified event.

Publish ( IEnumerable events ) : void

Publishes the specified events.

비공개 메소드들

메소드 설명
BuildMessage ( Envelope envelope ) : BrokeredMessage

메소드 상세

EventBus() 공개 메소드

Initializes a new instance of the EventBus class.
public EventBus ( IMessageSender sender, IMetadataProvider metadataProvider, ITextSerializer serializer ) : System.Collections.Generic
sender IMessageSender
metadataProvider IMetadataProvider
serializer ITextSerializer The serializer to use for the message body.
리턴 System.Collections.Generic

Publish() 공개 메소드

Sends the specified event.
public Publish ( Envelope @event ) : void
@event Envelope
리턴 void

Publish() 공개 메소드

Publishes the specified events.
public Publish ( IEnumerable events ) : void
events IEnumerable
리턴 void