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
Показать файл Открыть проект Примеры использования класса

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

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