EnvelopeFlow.Inbox
0.1.0-alpha.3.1
dotnet add package EnvelopeFlow.Inbox --version 0.1.0-alpha.3.1
NuGet\Install-Package EnvelopeFlow.Inbox -Version 0.1.0-alpha.3.1
<PackageReference Include="EnvelopeFlow.Inbox" Version="0.1.0-alpha.3.1" />
<PackageVersion Include="EnvelopeFlow.Inbox" Version="0.1.0-alpha.3.1" />
<PackageReference Include="EnvelopeFlow.Inbox" />
paket add EnvelopeFlow.Inbox --version 0.1.0-alpha.3.1
#r "nuget: EnvelopeFlow.Inbox, 0.1.0-alpha.3.1"
#:package EnvelopeFlow.Inbox@0.1.0-alpha.3.1
#addin nuget:?package=EnvelopeFlow.Inbox&version=0.1.0-alpha.3.1&prerelease
#tool nuget:?package=EnvelopeFlow.Inbox&version=0.1.0-alpha.3.1&prerelease
EnvelopeFlow.Inbox
Bounded development inbox, payload helper and optional application callback dispatcher. Persistence can be replaced through IInboxStore and IInboxChangeStore; content resolution is a separate application interface.
InMemoryInboxStore loses entries, tombstones, sequences and events when the process stops. Defaults bound it to 10,000 owners, 100,000 entries/tombstones and 100,000 events globally, with 10,000 entries and 1,000 pending events per recipient. Limits may be reduced or explicitly increased within documented bounds. Completed events consume global event capacity until cleanup. Owner headers remain to preserve revision/admission continuity and consume owner capacity even after all content is removed. Capacity failure does not create an empty owner.
Every operation serializes on one process-local gate. Derived unread counts and bounded ordinal pages see one committed operation's state. Pages sort only this bounded development dataset; this is not a distributed or indexed production implementation.
Optional IInboxQueryStore.ReadFilteredPageAsync combines exact kind, read state and archived state filters; null state values select either state. Archived entries are excluded by default and expired entries are always hidden. Filtered cursors bind all filters, the complete owner and an admission high watermark. Later admissions stay outside the traversal; current read/archive state remains live.
Optional IInboxBulkStore.SetStatesAsync atomically edits 1–100 distinct notification IDs for one authorized owner. Each InboxStateUpdate includes the expected revision and optional read/archive flags; a null flag preserves that field. A missing/expired entry or stale revision rejects the whole batch. Capacity and revision/event sequences are checked before publication; every changed entry receives one fresh revision and, when enabled, one normal recoverable event. Unchanged entries emit none. Retrying original stale revisions conflicts without duplicating effects: reload authorized state before constructing a new edit. This API supports bulk read, archive, unarchive or combinations without an unbounded mark-all operation. Existing admission fingerprints and single-entry APIs are unchanged.
Recoverable changes are disabled by default. With EnableRecoverableChanges = true, admission and changed read/archive state publish their event under the same gate. InboxChangeDispatcher claims a bounded batch, validates recipient/batch bounds, invokes the host's handler, then acknowledges its fence. A crash after invocation and before acknowledgment can invoke the same event ID again. A callback failure propagates and leaves the committed entry and pending event intact. Callbacks may run out of order; applications should deduplicate event IDs and reload current authorized state.
InboxStatePayload contains only a logical ID, expected revision and requested flags. Pass an authenticated, authorized owner separately to InboxStateHelpers.ApplyAsync. No helper maps an endpoint, parses identity claims or opens a realtime connection.
Optional IInboxDispatchObserver receives fixed codes, counts and diagnostic oldest-event lag for claims, replay, callback success/failure/cancellation, rejected acknowledgments and completion. It receives no recipient IDs, bodies, references or exception text. Observer exceptions do not change acknowledgment behavior. Lag uses an application-selected TimeProvider for diagnostics only; it does not control store leases. No observer implies no telemetry callbacks.
Cleanup is explicitly invoked for one owner with a limit of 1–1,000 total entry tombstones, tombstone removals and completed-event removals. Expired entries are hidden immediately. Default expired-content retention is zero, archived-content retention is 30 days, dedup retention after tombstoning is 30 days, and completed-event retention is 30 days. Active unarchived entries are not purged. Pending events survive indefinitely until acknowledged or explicitly resolved, and protect their generation's tombstone from removal. Cleanup/clock expiry do not emit additional state-change hooks; clients reload and enforce freshness when rendering.
The application sample demonstrates authentication/scope authorization, opaque content resolution, read/archive helpers and application-selected realtime invalidation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- EnvelopeFlow.Inbox.Abstractions (>= 0.1.0-alpha.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.3.1 | 45 | 11/22/2026 |
| 0.1.0-alpha.2.1 | 60 | 11/9/2026 |