Devplus.Messaging
1.0.2
See the version list below for details.
dotnet add package Devplus.Messaging --version 1.0.2
NuGet\Install-Package Devplus.Messaging -Version 1.0.2
<PackageReference Include="Devplus.Messaging" Version="1.0.2" />
<PackageVersion Include="Devplus.Messaging" Version="1.0.2" />
<PackageReference Include="Devplus.Messaging" />
paket add Devplus.Messaging --version 1.0.2
#r "nuget: Devplus.Messaging, 1.0.2"
#:package Devplus.Messaging@1.0.2
#addin nuget:?package=Devplus.Messaging&version=1.0.2
#tool nuget:?package=Devplus.Messaging&version=1.0.2
Devplus.Messaging 📬
📬 Biblioteca para integração com RabbitMQ e mensageria na arquitetura limpa.
🚀 Instalação
Para instalar a biblioteca via NuGet, utilize o seguinte comando:
dotnet add package Devplus.Messaging
Ou, no Visual Studio:
- Abra o Gerenciador de Pacotes NuGet.
- Busque por Devplus.Messaging.
- Clique em Instalar.
⚡ Como Usar
📦 Publicando Mensagens
using Devplus.Messaging.Interfaces;
private readonly IMessagingPublisher _messagingPublisher;
public TestMessageService(IMessagingPublisher messagingProducer)
{
_messagingPublisher = messagingProducer;
}
public async Task SendMessage()
{
await _messagingPublisher.PublishAsync(queueName: "devplus-test-queue",
message: "{responseData: \"Test message from TestMessageService\"}",
source: "devplus.test.app",
typeEvent: "test-event");
}
📩 Consumindo Mensagens
using Devplus.Messaging.Interfaces;
using Devplus.Messaging.Models;
namespace Devplus.TestApp.Consumers;
public class TestConsumer : IMessagingConsumer
{
public string QueueName => "devplus-test-queue";
private readonly ILogger<TestConsumer> _logger;
public TestConsumer(ILogger<TestConsumer> logger)
{
_logger = logger;
}
public Task HandleMessageAsync(CloudEvent<object> cloudEvent, CancellationToken cancellationToken)
{
_logger.LogInformation("Received message: {Message}", cloudEvent.Data);
return Task.CompletedTask;
}
}
🔧 Configuração via appsettings.json
{
"RabbitMq": {
"Host": "localhost",
"Port": "5672",
"Username": "user",
"Password": "pass",
"VHost": "my_vhost"
}
}
E no Program.cs:
var configuration = new ConfigurationBuilder()
.AddJsonFile("appsettings.json")
.Build();
builder.Services.AddMessaging(builder.Configuration);
🛠 Compatibilidade
| .NET Version | Suportado |
|---|---|
| .NET 8.0 | ✅ Sim |
| .NET 7.0 | ✅ Sim |
| .NET 6.0 | ✅ Sim |
| .NET Core 3.1 | ⚠️ Suporte limitado |
| .NET Framework | ❌ Não suportado |
📌 Funcionalidades
✅ Suporte ao RabbitMQ com publicação e consumo de mensagens.
✅ Injeção de dependência via IServiceCollection.
✅ Configuração via appsettings.json.
✅ Compatível com .NET 6, .NET 7 e .NET 8.
🏗 Contribuindo
Se você quiser contribuir para este projeto:
- Fork o repositório.
- Crie uma branch (
git checkout -b feature/nova-feature). - Faça commit das alterações (
git commit -m "Add nova feature"). - Envie um Pull Request.
📄 Licença
Este projeto está licenciado sob a MIT License.
📞 Contato
📧 Email: clayton@devplus.com.br
🔗 LinkedIn: Clayton Oliveira
🚀 Devplus Consultoria: www.devplus.com.br
| 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 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
- Microsoft.Extensions.DependencyInjection (>= 9.0.0)
- Microsoft.Extensions.Hosting (>= 9.0.0)
- RabbitMQ.Client (>= 6.6.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 |
|---|---|---|
| 3.0.1 | 411 | 10/14/2025 |
| 2.7.5 | 189 | 9/29/2025 |
| 2.7.4 | 2,094 | 5/20/2025 |
| 2.7.2 | 188 | 5/17/2025 |
| 2.7.0 | 262 | 4/30/2025 |
| 2.6.1 | 225 | 4/29/2025 |
| 2.5.1 | 273 | 4/23/2025 |
| 2.5.0 | 306 | 4/14/2025 |
| 2.4.1 | 232 | 4/8/2025 |
| 2.4.0 | 239 | 4/8/2025 |
| 2.2.0 | 241 | 4/7/2025 |
| 2.1.0 | 223 | 4/6/2025 |
| 2.0.0 | 518 | 3/25/2025 |
| 1.0.2 | 334 | 3/23/2025 |
| 1.0.1 | 223 | 3/20/2025 |
| 1.0.0 | 234 | 3/19/2025 |