Muflone.Transport.RabbitMQ 6.2.3

dotnet add package Muflone.Transport.RabbitMQ --version 6.2.3
NuGet\Install-Package Muflone.Transport.RabbitMQ -Version 6.2.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Muflone.Transport.RabbitMQ" Version="6.2.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Muflone.Transport.RabbitMQ --version 6.2.3
#r "nuget: Muflone.Transport.RabbitMQ, 6.2.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Muflone.Transport.RabbitMQ as a Cake Addin
#addin nuget:?package=Muflone.Transport.RabbitMQ&version=6.2.3

// Install Muflone.Transport.RabbitMQ as a Cake Tool
#tool nuget:?package=Muflone.Transport.RabbitMQ&version=6.2.3

Muflone Transport RabbitMQ

Muflone extension to manage queues, and topics on RabbitMQ.

Install

Install-Package Muflone.Transport.RabbitMQ

Implementation

It's very simple to register RabbitMQ's transport

public IServiceCollection RegisterModule(WebApplicationBuilder builder)
{
    var rabbitMQConfiguration = new RabbitMQConfiguration("localhost", "myuser", "mypassword", "ExchangeCommandsName", "ExchangeForEventsName");
    var connectionFactory = new MufloneConnectionFactory(rabbitMQConfiguration, MyLoggerFactory);

    builder.Services.AddScoped<ICommandHandlerAsync<CreateOrder>, CreateOrderCommandHandler>();
    builder.Services.AddScoped<IDomainEventHandlerAsync<OrderCreated>, OrderCreatedEventHandler>();

    builder.Services.AddMufloneTransportRabbitMQ(loggerFactory, rabbitMQConfiguration);

    //We need to call a build if we need the service bus or other things registered in Muflone.RabbitMQ
    serviceProvider = builder.Services.BuildServiceProvider();
    builder.Services.AddMufloneRabbitMQConsumers(new List<IConsumer>
    {
        new BeersReceivedConsumer(serviceProvider.GetRequiredService<IServiceBus>(), connectionFactory,	MyLoggerFactory),
        new CreateOrderConsumer(connectionFactory, MyLoggerFactory),
        new OrderCreatedConsumer(connectionFactory, MyLoggerFactory)
    };
    return builder.Services;
}

Fully working example

You can find a fully working example here: https://github.com/BrewUp/

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Muflone.Transport.RabbitMQ:

Package Downloads
Muflone.Transport.RabbitMQ.Saga

Muflone saga implementation for RabbitMQ

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.2.3 335 10/24/2023
6.2.2 159 7/10/2023
6.2.1 115 7/10/2023
6.2.0 236 6/3/2023
6.1.9 137 5/24/2023
6.1.8 135 5/24/2023
6.1.7 120 5/22/2023
6.1.6 121 5/20/2023
6.1.5 137 5/20/2023
6.1.4 116 5/15/2023
6.1.3 122 5/5/2023
6.1.2 165 4/20/2023
6.0.1 196 10/21/2022