Table of Contents

Interface IOutboxReaderFactory

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

Builds an IOutboxReader instance according to the provided OutboxSettings.

public interface IOutboxReaderFactory

Methods

GetReader(OutboxSettings, IServiceProvider)

Returns an IOutboxReader according to the specified settings.

IOutboxReader GetReader(OutboxSettings settings, IServiceProvider serviceProvider)

Parameters

settings OutboxSettings

The settings that will be used to create the IOutboxReader.

serviceProvider IServiceProvider

The IServiceProvider that can be used to resolve additional services.

Returns

IOutboxReader

The IOutboxReader.

Exceptions

InvalidOperationException

No outbox reader implementation is registered for the type of the specified settings.