Table of Contents

Interface IMessagesSource

Namespace
Silverback.Messaging.Messages
Assembly
Silverback.Core.dll

Exposes the methods to retrieve a list of messages associated with the object implementing this interface.

public interface IMessagesSource

Remarks

Used to implement the domain entities and automatically publish their events when the entity is saved to the underlying database.

Methods

ClearMessages()

Called after the messages have been successfully published (and processed) to clear the messages collection.

void ClearMessages()

GetMessages()

Gets the messages to be published.

IEnumerable<object>? GetMessages()

Returns

IEnumerable<object>

The message objects.