C# Class 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.
Inheritance: IEventBus
Afficher le fichier Open project: pebblecode/EducationPathways Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
BuildMessage ( Envelope envelope ) : BrokeredMessage

Method Details

EventBus() public méthode

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.
Résultat System.Collections.Generic

Publish() public méthode

Sends the specified event.
public Publish ( Envelope @event ) : void
@event Envelope
Résultat void

Publish() public méthode

Publishes the specified events.
public Publish ( IEnumerable events ) : void
events IEnumerable
Résultat void