Table of Contents

Class MessageConsumptionBuilder<TMessage>

Namespace
Ratatoskr.Config
Assembly
Ratatoskr.dll

Fluent builder for registering handlers within a Consumes<T>() call on a consume channel. Handlers with a stable key are inbox-managed; handlers without a key are fire-and-forget.

public class MessageConsumptionBuilder<TMessage> where TMessage : notnull

Type Parameters

TMessage
Inheritance
MessageConsumptionBuilder<TMessage>
Inherited Members

Methods

WithHandler<THandler>()

Registers a fire-and-forget handler (no inbox, no key required). Only valid on channels without UseInbox<TDbContext>().

WithHandler<THandler>(string)

Registers an inbox handler with a stable key. Requires the channel to have UseInbox<TDbContext>() configured.

WithHandler<THandler>(string, params string[])

Registers an inbox handler with a stable key and legacy keys for handler rename transitions. Legacy keys match existing inbox entries for processing but never create new entries. Requires the channel to have UseInbox<TDbContext>() configured.