Skip to content

thenoobsbr/rabbitmq-client

Repository files navigation

TheNoobs.RabbitMQ.Client

SonarCloud NuGet

Overview

TheNoobs.RabbitMQ is a modern .NET library that simplifies integration with RabbitMQ. It provides abstractions and utilities for building robust, scalable, and testable messaging solutions in .NET applications.

Features

  • Easy RabbitMQ integration for .NET 9.0+
  • Publisher and consumer abstractions
  • Attribute-based queue and retry configuration
  • Dependency injection support
  • Pluggable serialization
  • Built-in retry and error handling
  • Unit-testable interfaces

Installation

Install via NuGet:

Install-Package TheNoobs.RabbitMQ

Or with .NET CLI:

dotnet add package TheNoobs.RabbitMQ

Usage Example

using TheNoobs.RabbitMQ;

// Configure services in Startup.cs or Program.cs
services.AddRabbitMq(config =>
{
    config.WithConnection("amqp://user:password@localhost:5672/vhost");
    // Additional configuration
});

// Implement a consumer
public class MyConsumer : IAmqpConsumer<MyMessage>
{
    public async ValueTask<Result<Void>> HandleAsync(MyMessage message, CancellationToken cancellationToken)
    {
        // Handle message
        
        return Void.Value;
    }
}

Documentation

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License. See LICENSE for details.


♥ Made with love!

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages