OfX-RabbitMq
3.1.11
See the version list below for details.
dotnet add package OfX-RabbitMq --version 3.1.11
NuGet\Install-Package OfX-RabbitMq -Version 3.1.11
<PackageReference Include="OfX-RabbitMq" Version="3.1.11" />
paket add OfX-RabbitMq --version 3.1.11
#r "nuget: OfX-RabbitMq, 3.1.11"
// Install OfX-RabbitMq as a Cake Addin #addin nuget:?package=OfX-RabbitMq&version=3.1.11 // Install OfX-RabbitMq as a Cake Tool #tool nuget:?package=OfX-RabbitMq&version=3.1.11
OfX-RabbitMq
OfX-RabbitMq is an extension package for OfX that leverages RabbitMq for efficient data transportation. This package provides a high-performance, strongly-typed communication layer for OfX’s Attribute-based Data Mapping, enabling streamlined data retrieval across distributed systems.
Introduction
RabbitMq-based Transport: Implements RabbitMq to handle data communication between services, providing a fast, secure, and scalable solution.
Installation
To install the OfX-RabbitMq package, use the following NuGet command:
dotnet add package OfX-RabbitMq
Or via the NuGet Package Manager:
Install-Package OfX-RabbitMq
How to Use
1. Register OfX-RabbitMq
Add OfX-RabbitMq to your service configuration during application startup:
builder.Services.AddOfX(cfg =>
{
cfg.AddContractsContainNamespaces(typeof(SomeContractAssemblyMarker).Assembly);
cfg.AddRabbitMq(config => config.Host("localhost", "/")); // This is usally used for local test
// Or fullly configuration as bellow:
cfg.AddRabbitMq(config => config.Host("localhost", "/", 5672, c =>
{
c.UserName("SomeUserName");
c.Password("SomePassword");
}));
});
...
var app = builder.Build();
app.StartRabbitMqListeningAsync(); // When you want to create RabbitMq Listening
app.Run();
Note:
OfX-RabbitMq uses exchanges that start with OfX-[OfXAttribute metadata]
. Therefore, you should avoid using other exchanges. Additionally, OfX-RabbitMq automatically creates the queue ofx-rpc-queue-[application friendly name]
, so you should avoid creating a queue with the same name in your application.
That All, enjoy your moment!
| Package Name | Description | .NET Version | Document | |--------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|--------------|------------------------------------------------------------------------------------------| | OfX | OfX core | 8.0, 9.0 | ReadMe | | OfX-EFCore | This is the OfX extension package using EntityFramework to fetch data | 8.0, 9.0 | ReadMe | | OfX-gRPC | OfX-gRPC is an extension package for OfX that leverages gRPC for efficient data transportation. | 8.0, 9.0 | ReadMe | | OfX-Nats | OfX-Nats is an extension package for OfX that leverages Nats for efficient data transportation. | 8.0, 9.0 | ReadMe | | OfX-RabbitMq | OfX-RabbitMq is an extension package for OfX that leverages RabbitMq for efficient data transportation. | 8.0, 9.0 | This Document | | OfX-Kafka | OfX-Kafka is an extension package for OfX that leverages Kafka 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. |
-
net8.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- OfX (>= 3.1.11)
- RabbitMQ.Client (>= 7.0.0)
-
net9.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- OfX (>= 3.1.11)
- 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.