Show / Hide Table of Contents

    Interface IMessagesSource

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

    Namespace: Silverback.Messaging.Messages
    Assembly: Silverback.Core.dll
    Syntax
    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.

    Declaration
    void ClearMessages()
    Remarks

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

    GetMessages()

    Gets the messages to be published.

    Declaration
    IEnumerable<object>? GetMessages()
    Returns
    Type Description
    IEnumerable<object>

    The message objects.

    Remarks

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

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini