Path: redb-route/redb.Route/Abstractions/RouteCheckpoint.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/Abstractions/RouteCheckpoint.cs
----
namespace redb.Route.Abstractions;
///
/// The last .Replayable("name") save-point an exchange passed. Captured on each pass into
/// [] (the last marker wins) and read by
/// an error handler / the platform (Tsak) to replay the tail of the route from the frozen snapshot
/// via .
///
/// SECURITY: is a verbatim, UNREDACTED copy of the mid-flight exchange —
/// body, headers and Properties may hold decrypted tokens, PII or secrets. Nothing is masked (URI
/// redaction covers endpoint URIs, NOT payloads). Storing or exposing snapshots (e.g. via Tsak) is
/// the platform's responsibility, not the route's.
///
///
/// Route the checkpoint belongs to.
/// Name of the .Replayable marker.
/// Deep, isolated snapshot of the exchange at the marker (see ).
public sealed record RouteCheckpoint(string RouteId, string MarkerName, IExchange Snapshot)
{
/// Well-known key holding the last passed .
public const string PropertyKey = "route.checkpoint";
///
/// The direct: endpoint URI an exposed marker is addressable at
/// (.To("direct:__replay:{routeId}:{markerName}") from another route). Single source of
/// the format; internal (non-exposed) markers register no such endpoint.
///
public static string EndpointUri(string routeId, string markerName)
=> $"direct:__replay:{routeId}:{markerName}";
}