Path: redb-route/redb.Route.Core/Models/IdempotentEntryProps.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.Core/Models/IdempotentEntryProps.cs
----
using redb.Core.Attributes;
namespace redb.Route.RedbCore.Models;
///
/// Props model for idempotent message tracking.
/// Stored via — works on any redb-supported database
/// (PostgreSQL, SQL Server, SQLite) without raw DDL.
///
[RedbScheme("Route Idempotent Entry")]
public class IdempotentEntryProps
{
/// Route/processor scope identifier.
public string ProcessorName { get; set; } = string.Empty;
/// Unique message key (correlation ID, dedup key).
public string MessageKey { get; set; } = string.Empty;
/// Timestamp when the entry was created (UTC).
public DateTimeOffset CreatedAt { get; set; }
/// Whether processing has been confirmed (two-phase commit).
public bool Confirmed { get; set; }
///
/// The id of the claim that holds the key, handed out by Lease and checked by the token Confirm and
/// Release. Null for a key taken by Add and for entries written before 4.8.0.
///
public string? ClaimId { get; set; }
}