MVFC.Outbox.Wolverine
4.0.0
See the version list below for details.
dotnet add package MVFC.Outbox.Wolverine --version 4.0.0
NuGet\Install-Package MVFC.Outbox.Wolverine -Version 4.0.0
<PackageReference Include="MVFC.Outbox.Wolverine" Version="4.0.0" />
<PackageVersion Include="MVFC.Outbox.Wolverine" Version="4.0.0" />
<PackageReference Include="MVFC.Outbox.Wolverine" />
paket add MVFC.Outbox.Wolverine --version 4.0.0
#r "nuget: MVFC.Outbox.Wolverine, 4.0.0"
#:package MVFC.Outbox.Wolverine@4.0.0
#addin nuget:?package=MVFC.Outbox.Wolverine&version=4.0.0
#tool nuget:?package=MVFC.Outbox.Wolverine&version=4.0.0
MVFC.Outbox.Wolverine
Publishes Outbox messages through Wolverine's public inline senders and waits for confirmation (IOutboxTransport).
Supports .NET 10 and .NET 11.
dotnet add package MVFC.Outbox.Wolverine
Transport configuration is unchanged in 4.0.0. The Outbox uses one execution pipeline for every persistence provider and retries confirmation without resending the message in the same acquisition. A process crash can still cause redelivery: keep destination effects idempotent. See the migration guide.
Configuration and usage
The examples use the application's services and variables: services, configuration, connection, ct, order and topicId. Register services before building the host. Resolve the publisher and database services in the same DI scope.
For GCP Pub/Sub, prefer MVFC.Outbox.GcpPubSub, which registers WolverineOutboxTransport and GcpPubSubEndpointResolver together.
using MVFC.Outbox.Extensions;
using MVFC.Outbox.GcpPubSub;
using MVFC.Outbox.GcpPubSub.Extensions;
using MVFC.Outbox.PostgreSql;
using MVFC.Outbox.PostgreSql.Extensions;
using MVFC.Outbox.Transport;
using Microsoft.Extensions.DependencyInjection;
// UseGcpPubSub registers WolverineOutboxTransport and GcpPubSubEndpointResolver.
services.AddOutbox(configuration, outbox => outbox.ConsumerProducer()
.MapAggregate<Order, Guid>(order => order.Id, "order")
.UsePostgreSql<ApplicationDbContext>(connection)
.UseGcpPubSub(pubsub => pubsub.ProjectId = "my-project"));
// The dispatcher resolves this adapter and calls it after claiming a message.
var transport = scope.ServiceProvider.GetRequiredService<IOutboxTransport>();
await transport.PublishAsync(storedMessage, "orders-created", ct);
Architecture and envelope contract
Why inline senders instead of Wolverine's durable store: Wolverine's durable store would add a second persistence schema. Delivery tracking would then be separate from the numeric statuses, topic GUIDs and retention fields in
MVFC.Outbox.The configured Outbox database therefore remains the only persistent queue.
WolverineOutboxTransportwaits for the public inlineISender(orIWolverineOutboxSenderfor project overrides). If the broker rejects the message, the record becomesErrorso the Outbox can retry it.Endpoint requirements: configure both the runtime and the resolver to use
SendInlineendpoints. Durable endpoints that do not use inline sending are rejected.Version-sensitive behavior: in Wolverine 6.66, the internal inline sending agent can stop propagating failures after exhausting its retries. Waiting directly for the public sender lets these failures reach the Outbox.
Review WolverineOutboxTransport and rerun broker failure tests before upgrading Wolverine.
Propagated headers & telemetry: custom
AttributesJsonentries are copied intoenvelope.Headers, followed byoutbox-message-id,outbox-topic-id,aggregate-id,aggregate-typeandschema-version, withCorrelationId = message.Id.Wolverine emits its own transport telemetry.
Requirements
An application targeting .NET 10 or .NET 11.
A configured Wolverine host, an IOutboxEndpointResolver and inline senders that confirm delivery to the destinations. Use the GCP Pub/Sub package for the ready-made Pub/Sub integration.
For development, the playground and integration tests, use the .NET 11 SDK specified in global.json.
To build the packages, also install .NET 10 targeting support. Keep Docker running. See the playground guide.
Contributing
See CONTRIBUTING.md to set up the environment, run the Cake build and follow the test and coverage conventions. Dependency versions are defined in Directory.Packages.props.
License
Distributed under the Apache License 2.0. See LICENSE for all terms: permissions, redistribution conditions, and limits on warranty and liability.
| 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. net11.0 is compatible. |
-
net10.0
- Microsoft.Extensions.Hosting (>= 10.0.15)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.15)
- MVFC.Outbox (>= 4.0.0)
- WolverineFx (>= 6.66.0)
- WolverineFx.RuntimeCompilation (>= 6.66.0)
-
net11.0
- Microsoft.Extensions.Hosting (>= 11.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 11.0.0)
- MVFC.Outbox (>= 4.0.0)
- WolverineFx (>= 6.66.0)
- WolverineFx.RuntimeCompilation (>= 6.66.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MVFC.Outbox.Wolverine:
| Package | Downloads |
|---|---|
|
MVFC.Outbox.GcpPubSub
GCP Pub/Sub transport for MVFC.Outbox through Wolverine and native Google emulator detection. |
GitHub repositories
This package is not used by any popular GitHub repositories.