Webority.Outbox 0.15.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Webority.Outbox --version 0.15.2
                    
NuGet\Install-Package Webority.Outbox -Version 0.15.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Webority.Outbox" Version="0.15.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Webority.Outbox" Version="0.15.2" />
                    
Directory.Packages.props
<PackageReference Include="Webority.Outbox" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Webority.Outbox --version 0.15.2
                    
#r "nuget: Webority.Outbox, 0.15.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Webority.Outbox@0.15.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Webority.Outbox&version=0.15.2
                    
Install as a Cake Addin
#tool nuget:?package=Webority.Outbox&version=0.15.2
                    
Install as a Cake Tool

Webority.Outbox

One transactional outbox for Webority products. A product enqueues a message in the same save as the business change it belongs to, and its host drains each queue under a lease with a claim identity, retries, prerequisites between messages and recorded outcomes. The message table lives in the product's own database, mapped with ApplyWeborityOutbox(new OutboxModelOptions { Provider = OutboxDatabaseProvider.SqlServer }) (or PostgreSql) into each DbContext that stages a message. Staging takes the caller's context, so several contexts over one database can stage; the one context the host registers is the one its processor drains.

Usage: docs/usage.md.

The product's DbContext

Every outbox entity keys on typed ids (Id<T>, PublicId<T>), so the product's DbContext that maps the outbox table turns on the domain conventions and names the outbox assembly:

services.AddDbContext<ProductDbContext>(o => o
    .UseSqlServer(connectionString)
    .UseWeborityDomain());

// In ProductDbContext:
protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder) =>
    configurationBuilder.AddWeborityDomainConventions(
        typeof(Order).Assembly,           // the product's own entities
        typeof(OutboxMessage).Assembly);  // Webority.Outbox

Never call the no-argument form of AddWeborityDomainConventions. Read .Value where a raw Guid is needed, for example message.PublicId.Value in a log field or a receipt.

PostgreSQL

Map with Provider = OutboxDatabaseProvider.PostgreSql and run the scripts under content/schema/migrations/postgres (docs/usage.md → Set up). Two steps sit with the product.

Grants: the app login needs rights on the table and its sequence, in a product script that runs after the baseline.

grant select, insert, update, delete on public.outbox_message to <app_login>;
grant usage, select on sequence public.outbox_message_id_seq to <app_login>;

Draining from a Worker Service: a host without Azure Functions, such as a Linux Worker Service, drains each queue itself.

  • The worker host, never a web head, takes IOutboxDrain and calls RunAsync(cancellationToken) from one timer, on its own schedule (for example every 30 seconds).
  • Resolve IOutboxDrain from a scope created for each run, so its DbContext is disposed when the run ends.
  • The package runs no timer. A product on Azure Functions keeps its timer trigger.
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (16)

Showing the top 5 NuGet packages that depend on Webority.Outbox:

Package Downloads
Webority.Email.Outbox

Optional durable email outbox on the shared Webority.Outbox engine: submit-with-idempotency (IEmailOutbox) and the email queue handler that sends through IEmailSender. The product maps the shared outbox table on its own DbContext.

Webority.Support

Customer support ticketing for Webority products: the ticket, message and attachment entities, the settings, the seams a product implements, the service contracts, and the support email templates.

Webority.Support.Ai

AI for Webority support: the chat tools a product's assistant uses to list, read and prepare support actions for the customer to confirm. Kept out of the core packages so a product without AI pulls in no AI dependencies.

Webority.Support.EntityFrameworkCore

Stores Webority support tickets in the product's own database: the entity configuration, the customer and agent services, attachment storage, and the table scripts a product copies into its database project.

Webority.Email.EntityFrameworkCore

Durable EF Core persistence for the Webority email stack: an authoritative IEmailSuppressionStore, an IEmailDeliveryLog and an ILifecycleClaimStore, plus the entity configurations and the script that moves the old email outbox table into the shared outbox. The product owns its DbContext and migrations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.18.3 0 11/25/2026
0.18.2 0 11/25/2026
0.18.1 0 11/24/2026
0.18.0 94 11/24/2026
0.17.0 118 11/24/2026
0.16.2 284 11/23/2026
0.16.1 153 11/23/2026
0.16.0 206 11/22/2026
0.15.3 194 11/22/2026
0.15.2 218 11/21/2026
0.15.1 877 11/19/2026
0.15.0 223 11/19/2026
0.14.1 228 11/19/2026
0.14.0 503 11/18/2026
0.13.0 387 11/18/2026
0.12.7 293 11/18/2026
0.12.6 408 11/17/2026
0.12.5 2,184 11/15/2026
0.12.4 673 11/15/2026
0.12.3 813 11/15/2026
Loading failed