Table of Contents

Class OutboxProduceStrategy

Namespace
Silverback.Messaging.Producing.TransactionalOutbox
Assembly
Silverback.Integration.dll

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.

public sealed class OutboxProduceStrategy : IProduceStrategy, IEquatable<IProduceStrategy>, IEquatable<OutboxProduceStrategy>
Inheritance
OutboxProduceStrategy
Implements
Inherited Members

Constructors

OutboxProduceStrategy(OutboxSettings)

Initializes a new instance of the OutboxProduceStrategy class.

public OutboxProduceStrategy(OutboxSettings settings)

Parameters

settings OutboxSettings

The outbox settings.

Properties

Settings

Gets the outbox settings.

public OutboxSettings Settings { get; }

Property Value

OutboxSettings

Methods

Build(ISilverbackContext, ProducerEndpointConfiguration)

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

public IProduceStrategyImplementation Build(ISilverbackContext context, ProducerEndpointConfiguration endpointConfiguration)

Parameters

context ISilverbackContext

The ISilverbackContext.

endpointConfiguration ProducerEndpointConfiguration

The producer endpoint configuration.

Returns

IProduceStrategyImplementation

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

Equals(IProduceStrategy?)

public bool Equals(IProduceStrategy? other)

Parameters

other IProduceStrategy

Returns

bool

Equals(OutboxProduceStrategy?)

public bool Equals(OutboxProduceStrategy? other)

Parameters

other OutboxProduceStrategy

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(OutboxProduceStrategy?, OutboxProduceStrategy?)

public static bool operator ==(OutboxProduceStrategy? left, OutboxProduceStrategy? right)

Parameters

left OutboxProduceStrategy
right OutboxProduceStrategy

Returns

bool

operator !=(OutboxProduceStrategy?, OutboxProduceStrategy?)

public static bool operator !=(OutboxProduceStrategy? left, OutboxProduceStrategy? right)

Parameters

left OutboxProduceStrategy
right OutboxProduceStrategy

Returns

bool