FlowX.RabbitMq
7.0.5
dotnet add package FlowX.RabbitMq --version 7.0.5
NuGet\Install-Package FlowX.RabbitMq -Version 7.0.5
<PackageReference Include="FlowX.RabbitMq" Version="7.0.5" />
<PackageVersion Include="FlowX.RabbitMq" Version="7.0.5" />
<PackageReference Include="FlowX.RabbitMq" />
paket add FlowX.RabbitMq --version 7.0.5
#r "nuget: FlowX.RabbitMq, 7.0.5"
#:package FlowX.RabbitMq@7.0.5
#addin nuget:?package=FlowX.RabbitMq&version=7.0.5
#tool nuget:?package=FlowX.RabbitMq&version=7.0.5
FlowX.RabbitMq
FlowX.RabbitMq is an extension package for FlowX that integrates with RabbitMq, providing a seamless way to handle message-based communication using FlowX’s Request Flow patterns. This package is ideal for distributed applications that require reliable event-driven architecture.
Features
- Enables communication via RabbitMq in FlowX.
- Supports request-response and event-driven patterns.
- Leverages FlowX’s fluent API for seamless integration.
Prerequisites
Prerequisites
Ensure you have the following installed:
- .NET 8.0 or higher
- RabbitMQ.Client
Installation
To install the FlowX package, use the following NuGet command:
dotnet add package FlowX.RabbitMq
Or via the NuGet Package Manager:
Install-Package FlowX.RabbitMq
Usage
1. Register FlowX.RabbitMq in the Dependency Injection Container
Add FlowX.RabbitMq to your service configuration:
builder.Services.AddFlowX(options =>
{
options.AddModelsFromNamespaceContaining<IAssemblyMarker>();
options.AddHandlersFromNamespaceContaining<IAssemblyMarker>();
options.AddRabbitMq(c => c.Host("localhost", "/"));
})
.AddEfCore(c => c.AddDbContexts(typeof(SomeDbContext)));
Method descriptions
AddRabbitMq: Add RabbitMq config, you have to locate the rabbitMq Host and VirtualHost, you can also config the Prefix for RabbitMq.
2. Sending Requests via NATS
var sender = ServiceProvider.GetRequiredService<IMediator>();
var response = await sender.Send(new GetProvinces(), cancellationToken);
Acts as FlowX, you don't need to care about the behind the scene. FlowX handle the RPC request for you!
Enjoy your moment!
| Package Name | Description | .NET Version | Document |
|---|---|---|---|
| FlowX | FlowX core | 8.0, 9.0 | ReadMe |
| Data Provider | |||
| FlowX.EntityFrameworkCore | This is the FlowX extension package using EntityFramework to fetch data | 8.0, 9.0 | ReadMe |
| Transports | |||
| FlowX.Nats | FlowX.Nats is an extension package for FlowX that leverages Nats for efficient data transportation. | 8.0, 9.0 | This Document |
| FlowX.Azure.ServiceBus | FlowX.Azure.ServiceBus is an extension package for FlowX that leverages Azure ServiceBus for efficient data transportation. | 8.0, 9.0 | ReadMe |
| 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 is compatible. 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 was computed. 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. |
-
net8.0
- FlowX (>= 7.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- RabbitMQ.Client (>= 7.0.0)
-
net9.0
- FlowX (>= 7.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- RabbitMQ.Client (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.0.5 | 70 | 1/8/2026 |