![]() |
VOOZH | about |
dotnet add package Rig.TUnit.Microservices.Inbox --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Microservices.Inbox -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Microservices.Inbox" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Microservices.Inbox" Version="0.1.0-beta.2" />Directory.Packages.props
<PackageReference Include="Rig.TUnit.Microservices.Inbox" />Project file
paket add Rig.TUnit.Microservices.Inbox --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Microservices.Inbox, 0.1.0-beta.2"
#:package Rig.TUnit.Microservices.Inbox@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Microservices.Inbox&version=0.1.0-beta.2&prereleaseInstall as a Cake Addin
#tool nuget:?package=Rig.TUnit.Microservices.Inbox&version=0.1.0-beta.2&prereleaseInstall as a Cake Tool
Inbox pattern — per-aggregate sequence tracking for idempotent event application.
SequenceTracker+ fluentInboxAssert.SequenceApplied(…).Idempotent().
The query-side idempotency helper for event-sourced microservices.
SequenceTracker keeps a per-aggregate "highest applied sequence"
record; TryApply(aggregateId, sequence) returns true only for
strictly-increasing sequences. Duplicates and out-of-order events are
rejected. InboxAssert offers the fluent assertion shape tests expect.
SequenceTracker with your persistence adapter.using Rig.TUnit.Microservices.Inbox;
var tracker = new SequenceTracker();
tracker.TryApply("agg-1", 5); // true
tracker.TryApply("agg-1", 5); // false — idempotent re-apply
tracker.TryApply("agg-1", 4); // false — out of order
InboxAssert.SequenceApplied(tracker, "agg-1", 5).Idempotent();
| Property | Type | Default | Description |
|---|---|---|---|
MaxTrackedAggregates |
int |
10_000 |
Guard against unbounded growth |
EvictionPolicy |
InboxEvictionPolicy |
OldestFirst |
How to reclaim slots when full |
Rig.TUnit.Microservices.Inbox.SequenceTrackerRig.TUnit.Microservices.Inbox.Assertions.InboxAssertEach SequenceTracker instance is scoped per-test. No shared statics.
Safe under full parallelism.
TryApply is a dictionary lookup + CAS: ~50 ns per call.ConcurrentDictionary; safe under full parallelism.TryApply returns true for a duplicate — the aggregate-id
string is different (case, whitespace). SequenceTracker is
case-sensitive by design; normalise at your persistence boundary.See .
long; negative sequences throw
ArgumentOutOfRangeException.TryApply(5) after TryApply(3) returns
true, and the tracker advances. That is the correct semantic for
most inbox patterns (gaps are the publisher's problem).See ;
baseline in benchmarks/baseline-005.json.
MIT. See .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on Rig.TUnit.Microservices.Inbox:
| Package | Downloads |
|---|---|
|
Rig.TUnit.All
Meta-package containing every Rig.TUnit.* package. DISCOURAGED — prefer per-feature or per-stack meta-packages (Rig.TUnit, Rig.TUnit.Microservices). |
|
|
Rig.TUnit.Microservices
Meta-package: Core + Mediator + Grpc + Outbox + Tracing + Jwt + Seq — the opinionated microservice testing kit. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.2 | 71 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 65 | 4/26/2026 |