Rask.Outbox
0.20.1-alpha.0.240
See the version list below for details.
dotnet add package Rask.Outbox --version 0.20.1-alpha.0.240
NuGet\Install-Package Rask.Outbox -Version 0.20.1-alpha.0.240
<PackageReference Include="Rask.Outbox" Version="0.20.1-alpha.0.240" />
<PackageVersion Include="Rask.Outbox" Version="0.20.1-alpha.0.240" />
<PackageReference Include="Rask.Outbox" />
paket add Rask.Outbox --version 0.20.1-alpha.0.240
#r "nuget: Rask.Outbox, 0.20.1-alpha.0.240"
#:package Rask.Outbox@0.20.1-alpha.0.240
#addin nuget:?package=Rask.Outbox&version=0.20.1-alpha.0.240&prerelease
#tool nuget:?package=Rask.Outbox&version=0.20.1-alpha.0.240&prerelease
Rask.Outbox
A transactional outbox for Rask.Data entities — durable, crash-safe domain-event delivery on the app's own database, with no broker or Redis.
- Mark a domain event
IOutboxEventand it's written to anOutboxMessagetable in the same transaction as the change that raised it — so an event is never lost, and never fires for a change that rolled back. - A background
OutboxProcessorpolls the table and publishes each message through Rask.Cqrs (IDispatcher.PublishAsync) — at-least-once, with retries and an attempt count. - Published messages are purged after
RetentionPeriod(default 7 days) so the table doesn't grow forever. Dead letters are never purged — they have noProcessedAtfor the predicate to match. - Metrics on the
Rask.Outboxmeter: processed / failed / dead-lettered counters, a duration histogram, and pending / dead-letter gauges.rask.outbox.deadlettersis the one to alert on. - A source generator registers every
IOutboxEventtype for reflection-free lookup on the drain path.
Use
public sealed record OrderPlaced(Guid Id) : IOutboxEvent; // raised on your Entity
// Program.cs
builder.Services.AddRaskCqrs();
builder.Services.AddRaskData(); // AddRaskOutbox below takes delivery of the domain events
builder.Services.AddRaskOutbox<AppDbContext>(o => o.PollInterval = TimeSpan.FromSeconds(5));
builder.Services.AddDbContextFactory<AppDbContext>((sp, o) => o
.UseSqlite("Data Source=app.db")
.AddInterceptors(sp.GetServices<ISaveChangesInterceptor>()));
// AppDbContext.OnModelCreating
modelBuilder.AddRaskOutbox(); // maps the OutboxMessage table
db.SaveChanges() now writes an OutboxMessage row for each IOutboxEvent the entity raised, in the
same transaction; the processor drains and publishes them just after commit. Any
INotificationHandler<OrderPlaced> reacts — the same handler works whether events are delivered in-process
(Rask.Data) or via the outbox.
Server-side. The processor is a hosted BackgroundService and the store is your EF Core database
(SQLite by default). Part of the Rask framework. MIT licensed.
| 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
- Microsoft.EntityFrameworkCore (>= 10.0.11)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
- Rask.Cqrs (>= 0.20.1-alpha.0.240)
- Rask.Data (>= 0.20.1-alpha.0.240)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Rask.Outbox:
| Package | Downloads |
|---|---|
|
Rask.Server
The ASP.NET host for Rask, a full-stack .NET web framework, with every battery: database (SQLite, PostgreSQL or SQL Server, picked by Rask:Database:Provider), mediator and query cache, accounts, background jobs, transactional email, cache, file storage, outbox, operator dashboard, durable logs, Web Push, SQLite snapshots and continuous backup. Renders Rask components with live updates over a WebSocket. RaskApp.Create(args).Run<App>() is the whole Program.cs; app.Configure(c => c.Jobs.Off()) is how an app does without one. Depends on Rask, the shared core. |
|
|
Rask.Dashboard
A built-in operator dashboard for the Rask One Person Framework batteries. Mounts at /_rask and shows the outbox, background jobs, queued mail, cache and stored files from the application's own database — queue depth, dead letters, the errors behind them, stored email previews, the recurring-job schedule, SQLite pragmas and backup status. A live log tail is built in, and becomes a searchable history when Rask.Logging is installed. Panels appear only for the batteries the app actually registered. Protected by an authorization policy that fails closed outside Development. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.23.1-alpha.0.84 | 38 | 9/25/2026 |
| 0.23.1-alpha.0.82 | 34 | 9/25/2026 |
| 0.23.1-alpha.0.81 | 35 | 9/25/2026 |
| 0.23.1-alpha.0.80 | 30 | 9/25/2026 |
| 0.23.1-alpha.0.79 | 35 | 9/25/2026 |
| 0.23.1-alpha.0.78 | 32 | 9/25/2026 |
| 0.23.1-alpha.0.76 | 39 | 9/25/2026 |
| 0.23.1-alpha.0.74 | 36 | 9/25/2026 |
| 0.23.1-alpha.0.72 | 33 | 9/25/2026 |
| 0.23.1-alpha.0.70 | 33 | 9/25/2026 |
| 0.23.1-alpha.0.69 | 42 | 9/25/2026 |
| 0.23.1-alpha.0.68 | 37 | 9/25/2026 |
| 0.23.1-alpha.0.67 | 38 | 9/25/2026 |
| 0.23.1-alpha.0.66 | 32 | 9/24/2026 |
| 0.23.1-alpha.0.65 | 37 | 9/24/2026 |
| 0.23.1-alpha.0.64 | 38 | 9/24/2026 |
| 0.23.1-alpha.0.62 | 41 | 9/24/2026 |
| 0.23.1-alpha.0.61 | 39 | 9/24/2026 |
| 0.23.0 | 167 | 9/18/2026 |
| 0.20.1-alpha.0.240 | 77 | 9/7/2026 |