Eliassen.MessageQueueing.Abstractions
0.1.84
See the version list below for details.
dotnet add package Eliassen.MessageQueueing.Abstractions --version 0.1.84
NuGet\Install-Package Eliassen.MessageQueueing.Abstractions -Version 0.1.84
<PackageReference Include="Eliassen.MessageQueueing.Abstractions" Version="0.1.84" />
paket add Eliassen.MessageQueueing.Abstractions --version 0.1.84
#r "nuget: Eliassen.MessageQueueing.Abstractions, 0.1.84"
// Install Eliassen.MessageQueueing.Abstractions as a Cake Addin #addin nuget:?package=Eliassen.MessageQueueing.Abstractions&version=0.1.84 // Install Eliassen.MessageQueueing.Abstractions as a Cake Tool #tool nuget:?package=Eliassen.MessageQueueing.Abstractions&version=0.1.84
Eliassen.MessageQueueing.Abstractions
Overview
The Eliassen.MessageQueueing.Abstractions library provides a comprehensive abstraction layer for interacting with message queues in .NET applications. It offers interfaces and classes for handling messages, sending messages, and receiving messages from various message queues. These abstractions enable developers to decouple their application logic from specific message queue implementations, facilitating easier testing, extensibility, and maintenance.
Key Features
- Message Handling: Provides generic interfaces for handling messages from message queues, allowing for flexible message processing logic.
- Message Sending: Offers generic interfaces for sending messages to message queues, supporting asynchronous message transmission.
- Message Context: Defines a message context interface to encapsulate metadata associated with messages, such as origin message ID, correlation ID, and message type.
- Extensibility: Enables developers to implement custom message queue handlers, senders, and receivers, supporting a wide range of message queue systems.
- Configurability: Allows for configuration-based setup of message queue providers, handlers, and senders, facilitating easy integration with different messaging platforms.
- Ease of Testing: Facilitates unit testing by providing interfaces that can be easily mocked or stubbed, allowing for isolated testing of message handling and sending logic.
Getting Started
To use Eliassen.MessageQueueing.Abstractions in your .NET project, simply install the library via NuGet Package Manager:
dotnet add package Eliassen.MessageQueueing.Abstractions
## Usage Example
Here's a simple example demonstrating how to handle messages from a message queue using Eliassen.MessageQueueing.Abstractions:
```csharp
using Eliassen.MessageQueueing.Abstractions;
public class MyMessageHandler : IMessageQueueHandler
{
public async Task HandleAsync(object message, IMessageContext context)
{
// Custom message handling logic
await Task.CompletedTask;
}
}
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. |
-
net8.0
NuGet packages (7)
Showing the top 5 NuGet packages that depend on Eliassen.MessageQueueing.Abstractions:
Package | Downloads |
---|---|
Eliassen.MailKit.Hosting
Package Description |
|
Eliassen.RabbitMQ
Package Description |
|
Eliassen.MessageQueueing
Package Description |
|
Eliassen.Azure.StorageAccount
Package Description |
|
Eliassen.MessageQueueing.Hosting
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.