OpinionatedEventing.RabbitMQ
1.0.0
dotnet add package OpinionatedEventing.RabbitMQ --version 1.0.0
NuGet\Install-Package OpinionatedEventing.RabbitMQ -Version 1.0.0
<PackageReference Include="OpinionatedEventing.RabbitMQ" Version="1.0.0" />
<PackageVersion Include="OpinionatedEventing.RabbitMQ" Version="1.0.0" />
<PackageReference Include="OpinionatedEventing.RabbitMQ" />
paket add OpinionatedEventing.RabbitMQ --version 1.0.0
#r "nuget: OpinionatedEventing.RabbitMQ, 1.0.0"
#:package OpinionatedEventing.RabbitMQ@1.0.0
#addin nuget:?package=OpinionatedEventing.RabbitMQ&version=1.0.0
#tool nuget:?package=OpinionatedEventing.RabbitMQ&version=1.0.0
OpinionatedEventing.RabbitMQ
RabbitMQ transport for OpinionatedEventing.
- Events (
IEvent) → topic exchanges with per-handler bindings - Commands (
ICommand) → direct queues (single handler) - Automatically declares exchanges, queues, and bindings on startup
- Supports .NET Aspire service discovery
Installation
dotnet add package OpinionatedEventing.RabbitMQ
Registration
builder.Services
.AddOpinionatedEventing()
.AddOutbox();
builder.Services.AddRabbitMQTransport(options =>
{
options.HostName = "localhost";
options.Port = 5672;
options.UserName = "guest";
options.Password = "guest";
options.VirtualHost = "/";
});
For local development with a containerised RabbitMQ, use OpinionatedEventing.Aspire — it wires up service discovery automatically so no manual hostname configuration is needed.
Handler registration
Handlers registered via AddOpinionatedEventing() are automatically wired to the correct exchange binding / queue. No per-handler configuration required.
builder.Services.AddOpinionatedEventing()
.AddHandlersFromAssemblies(typeof(Program).Assembly);
Repository
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.Extensions.Configuration.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- OpinionatedEventing (>= 1.0.0)
- OpinionatedEventing.Outbox (>= 1.0.0)
- RabbitMQ.Client (>= 7.2.1)
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- OpinionatedEventing (>= 1.0.0)
- OpinionatedEventing.Outbox (>= 1.0.0)
- RabbitMQ.Client (>= 7.2.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OpinionatedEventing.RabbitMQ:
| Package | Downloads |
|---|---|
|
OpinionatedEventing.CloudEvents.RabbitMQ
CloudEvents 1.0 structured envelope for the RabbitMQ transport. Opt in per transport via UseCloudEventsEnvelope() to interoperate with systems like Azure Event Grid, Dapr, or Knative. Commands remain in the broker-native format; only events are wrapped. |
GitHub repositories
This package is not used by any popular GitHub repositories.