Show / Hide Table of Contents

    Class OutboxProduceStrategy

    The messages are stored in the transactional outbox table. The operation can therefore be included in the database transaction applying the message side effects to the local database. The IOutboxWorker takes care of asynchronously sending the messages to the message broker.

    Inheritance
    object
    OutboxProduceStrategy
    Implements
    IProduceStrategy
    IEquatable<IProduceStrategy>
    IEquatable<OutboxProduceStrategy>
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Silverback.Messaging.Producing.TransactionalOutbox
    Assembly: Silverback.Integration.dll
    Syntax
    public sealed class OutboxProduceStrategy : IProduceStrategy, IEquatable<IProduceStrategy>, IEquatable<OutboxProduceStrategy>

    Constructors

    OutboxProduceStrategy(OutboxSettings)

    Initializes a new instance of the OutboxProduceStrategy class.

    Declaration
    public OutboxProduceStrategy(OutboxSettings settings)
    Parameters
    Type Name Description
    OutboxSettings settings

    The outbox settings.

    Properties

    Settings

    Gets the outbox settings.

    Declaration
    public OutboxSettings Settings { get; }
    Property Value
    Type Description
    OutboxSettings

    Methods

    Build(ISilverbackContext, ProducerEndpointConfiguration)

    Returns the actual strategy implementation, built using the provided IServiceProvider.

    Declaration
    public IProduceStrategyImplementation Build(ISilverbackContext context, ProducerEndpointConfiguration endpointConfiguration)
    Parameters
    Type Name Description
    ISilverbackContext context

    The ISilverbackContext.

    ProducerEndpointConfiguration endpointConfiguration

    The producer endpoint configuration.

    Returns
    Type Description
    IProduceStrategyImplementation

    An instance of IProduceStrategyImplementation that can be used to produce the messages.

    Equals(IProduceStrategy?)

    The messages are stored in the transactional outbox table. The operation can therefore be included in the database transaction applying the message side effects to the local database. The IOutboxWorker takes care of asynchronously sending the messages to the message broker.

    Declaration
    public bool Equals(IProduceStrategy? other)
    Parameters
    Type Name Description
    IProduceStrategy other
    Returns
    Type Description
    bool

    Equals(OutboxProduceStrategy?)

    The messages are stored in the transactional outbox table. The operation can therefore be included in the database transaction applying the message side effects to the local database. The IOutboxWorker takes care of asynchronously sending the messages to the message broker.

    Declaration
    public bool Equals(OutboxProduceStrategy? other)
    Parameters
    Type Name Description
    OutboxProduceStrategy other
    Returns
    Type Description
    bool

    Equals(object?)

    The messages are stored in the transactional outbox table. The operation can therefore be included in the database transaction applying the message side effects to the local database. The IOutboxWorker takes care of asynchronously sending the messages to the message broker.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    GetHashCode()

    The messages are stored in the transactional outbox table. The operation can therefore be included in the database transaction applying the message side effects to the local database. The IOutboxWorker takes care of asynchronously sending the messages to the message broker.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    Operators

    operator ==(OutboxProduceStrategy?, OutboxProduceStrategy?)

    The messages are stored in the transactional outbox table. The operation can therefore be included in the database transaction applying the message side effects to the local database. The IOutboxWorker takes care of asynchronously sending the messages to the message broker.

    Declaration
    public static bool operator ==(OutboxProduceStrategy? left, OutboxProduceStrategy? right)
    Parameters
    Type Name Description
    OutboxProduceStrategy left
    OutboxProduceStrategy right
    Returns
    Type Description
    bool

    operator !=(OutboxProduceStrategy?, OutboxProduceStrategy?)

    The messages are stored in the transactional outbox table. The operation can therefore be included in the database transaction applying the message side effects to the local database. The IOutboxWorker takes care of asynchronously sending the messages to the message broker.

    Declaration
    public static bool operator !=(OutboxProduceStrategy? left, OutboxProduceStrategy? right)
    Parameters
    Type Name Description
    OutboxProduceStrategy left
    OutboxProduceStrategy right
    Returns
    Type Description
    bool

    Implements

    IProduceStrategy
    IEquatable<T>
    IEquatable<T>
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini