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

    | Improve this doc View source

    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.

    | Improve this doc View source

    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.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini