Stratara.Contracts
4.4.9
Prefix Reserved
See the version list below for details.
dotnet add package Stratara.Contracts --version 4.4.9
NuGet\Install-Package Stratara.Contracts -Version 4.4.9
<PackageReference Include="Stratara.Contracts" Version="4.4.9" />
<PackageVersion Include="Stratara.Contracts" Version="4.4.9" />
<PackageReference Include="Stratara.Contracts" />
paket add Stratara.Contracts --version 4.4.9
#r "nuget: Stratara.Contracts, 4.4.9"
#:package Stratara.Contracts@4.4.9
#addin nuget:?package=Stratara.Contracts&version=4.4.9
#tool nuget:?package=Stratara.Contracts&version=4.4.9
Stratara.Contracts
Derived. The behaviour described here is specified under
openspec/specs/. Those specifications are the source; this page explains and illustrates them.
License: MIT.
Wire-level POCO contracts shared by every Stratara package. Pure data records — no runtime, no DI, no infrastructure deps. Safe to reference from any layer.
Contents
Messages/EventMessage,EventBundle,CommandEnvelope— the cross-process envelope shapes that messaging adapters (Stratara.Outbox.RabbitMQetc.) serialise on and off the bus.Requests/PagedRequest— shared pagination + sort record used by query handlers across the family.Session/SessionContext— public data shape for actor/subject identity, correlation, causation, and connection routing. TheISessionContextProviderservice abstraction lives inStratara.Abstractions; the ASP.NET Core middleware that populates it lives inStratara.Sessions.
Quick reference
// Build a CommandEnvelope outside the framework (rare, but supported)
var envelope = new CommandEnvelope(
Id: Guid.CreateVersion7(),
CommandJson: commandJson,
CommandTypeName: typeof(MyCommand).AssemblyQualifiedName!,
SessionContextJson: sessionContextJson);
Dependencies
None. Contracts is the lowest tier in the Stratara dependency graph.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages (9)
Showing the top 5 NuGet packages that depend on Stratara.Contracts:
| Package | Downloads |
|---|---|
|
Stratara.Abstractions
Contract interfaces and POCO records for the Stratara CQRS / Event Sourcing framework — Mediator, EventSourcing, Persistence, Outbox, Messaging, Session, Security, Authorization. Library-safe, no EF Core or message-bus runtime. |
|
|
Stratara.Sessions
ASP.NET Core middleware and provider for Stratara's Actor/Subject session model. Reads tenant and user from JWT claims (or X-Tenant-Id / X-Client-Id headers) and populates the ambient ISessionContextProvider for every request. |
|
|
Stratara.Shared
Umbrella package for the Stratara framework — source-generated logger extensions for command flows, domain-event helpers, merge primitives, and the Tier-A/B abstractions surface re-exported as one transitive bundle. |
|
|
Stratara.Projections
Projection runtime for the Stratara event-sourced stack — projection-handler discovery, change-set creation, update application, and projection manager. Sits between read-model repositories and the event-bundle dispatcher. |
|
|
Stratara.Outbox.RabbitMQ
Outbox-pattern command and event dispatch for the Stratara event-sourced stack — RabbitMQ IMessageBus implementation, retry worker, mediator command worker, and Redis-coordinated projection-replay state. Azure Service Bus support ships as the sibling Stratara.Outbox.AzureServiceBus package. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.8.0 | 518 | 11/6/2026 |
| 4.7.1 | 432 | 11/5/2026 |
| 4.7.0 | 830 | 10/30/2026 |
| 4.6.1 | 358 | 10/29/2026 |
| 4.6.0 | 434 | 10/28/2026 |
| 4.5.0 | 519 | 10/28/2026 |
| 4.4.10 | 446 | 10/26/2026 |
| 4.4.9 | 354 | 10/26/2026 |
| 4.4.8 | 495 | 10/24/2026 |
| 4.4.7 | 361 | 10/23/2026 |
| 4.4.6 | 473 | 10/22/2026 |
| 4.4.5 | 884 | 10/14/2026 |
| 4.4.4 | 611 | 10/10/2026 |
| 4.4.3 | 342 | 10/10/2026 |
| 4.4.2 | 705 | 10/2/2026 |
| 4.4.1 | 647 | 9/29/2026 |
| 4.4.0 | 384 | 9/27/2026 |
| 4.3.1 | 438 | 9/25/2026 |
| 4.3.0 | 629 | 9/23/2026 |
| 4.2.0 | 387 | 9/18/2026 |
A fix for hosts on the Orleans execution model. A host that removed or renamed a projection no longer has that
projection's store readers come back on every start and fail each entry; they retire once, as a saga's readers do. A
retired store reader now logs its retirement once instead of three times, and leaves no reminder error behind. No
API change, no schema change and no migration.
### Fixed
- **A reader of a removed projection retires.** On the Orleans execution model, a host that removed or renamed a
projection kept the keep-alive reminders of its store readers. On every start of the silo they brought the readers
back, and each one read the next entry of its partition, failed it because no projection of its name was
registered, and tried again on the next tick, without end — a warning per partition and entry. Such a reader now
retires the first time it is brought back, as a saga's reader already did: it unregisters its keep-alive, logs
`117_136` `UnregisteredProjectionReaderRetired` (Information) once, reads nothing and deactivates. Its checkpoints
stay, so a projection registered again resumes where it stopped; *Operate the Orleans execution model* says how to
delete them. In a rolling deployment that adds a projection, a reader that lands on a silo of the earlier version
refuses a rebuild's or a replay's pause, which then fails naming it, and a wait counts its partition as behind.
- **A retired store reader logs its retirement once.** A reader that retired as it was activated — of a partition
beyond a lowered partition count, or of a saga the silo no longer registers — deactivated before it answered the
call that activated it. Orleans forwarded that call to a new activation, which retired again, so the retirement was
logged three times per reader and the keep-alive tick ended in `Could not deliver reminder tick` at Error. The
reader now answers the call first and deactivates after it.