Path: redb-route/demo/SerialNumbersDemo/SerialNumbers.Core/Services/OutboxWriter.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/demo/SerialNumbersDemo/SerialNumbers.Core/Services/OutboxWriter.cs ---- using redb.Core; namespace SerialNumbers.Core.Services; /// /// The outbox: a table row per response to deliver. Written inside the request transaction and /// read by the outbox route with the sql: component, so a response is either committed and /// queued, or neither. /// public static class OutboxWriter { public static async Task EnqueueAsync(IRedbService redb, string partnerCode, long responseObjectId, CancellationToken ct) => await redb.Context.ExecuteAsync( "INSERT INTO dbo.outbox (partner_code, response_object_id) VALUES ($1, $2)", [partnerCode, responseObjectId], ct); }