Path: redb-route/redb.Route/Configuration/AttachmentOptions.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Configuration/AttachmentOptions.cs
----
namespace redb.Route.Configuration;
/// Message attachment options, section RedbRoute:Attachments.
public sealed class AttachmentOptions
{
/// Default : 10 MB, the default HTTP request body limit.
public const long DefaultMaxReplayableBytes = 10L * 1024 * 1024;
///
/// The total attachment content of one exchange (In and Out) that a snapshot for replay keeps. A
/// .Replayable() checkpoint of an exchange whose attachments are larger is not captured (logged, processing
/// goes on), and so the exchange cannot be replayed from a checkpoint or from the Tsak DLQ, which stores that
/// checkpoint. 0 means an exchange with any attachment is not replayable. Default: 10 MB.
///
public long MaxReplayableBytes { get; set; } = DefaultMaxReplayableBytes;
}