RabbitLight 2.3.0

dotnet add package RabbitLight --version 2.3.0
NuGet\Install-Package RabbitLight -Version 2.3.0
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="RabbitLight" Version="2.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RabbitLight --version 2.3.0
#r "nuget: RabbitLight, 2.3.0"
#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 RabbitLight as a Cake Addin
#addin nuget:?package=RabbitLight&version=2.3.0

// Install RabbitLight as a Cake Tool
#tool nuget:?package=RabbitLight&version=2.3.0

RabbitLight

RabbitLight is a RabbitMQ Client for .NET developed with simplicity in mind.

Messages are routed to their respective consumers using Attributes, similar to the [Route(MY-ROUTE)] attribute used on AspNetCore projects.

It also comes with Auto Scaling and Self Healing on the client side to ensure that your application is always connected to the broker, while optimizing the usage of the machine's resources with parallel processing.

To create a consumer, you just have to:

1. Create a class that inherits from ConsumerBase

2. Use [Exchange(MY-EXCHANGE)] to bind a exchange to that class

3. Add [Queue(MY-QUEUE)] to bind a queue to a method from that class

[Exchange("my-exchange")]
public class MyConsumer : ConsumerBase
{
    [Queue("my-queue")]
    public async Task MyQueue(MessageContext<MyMessage> context)
    {
        // ...
    }
}

And to publish a message:

1. Inject the context, and get the publisher:

public class ExampleController : ControllerBase
{
    private readonly IPublisher _publisher;

    public ExampleController(ExampleContext busContext)
    {
        _publisher = busContext.Publisher;
    }

    // ...
}

2. Publish a message:

await _publisher.PublishString("my-exchange", "routing-key", "Hello, World!");
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.3.0 252 2/5/2023
2.2.3 3,788 6/17/2021
2.2.2 329 4/19/2021
2.2.1 314 4/19/2021
2.2.0 344 1/30/2021
2.1.0 334 1/30/2021
2.0.0 391 11/17/2020
1.2.4 508 11/7/2020
1.2.3 394 10/28/2020
1.2.2 377 10/28/2020
1.2.1 465 10/17/2020
1.2.0 419 10/14/2020
1.1.4 463 11/7/2020
1.1.3 375 10/28/2020
1.1.2 372 10/28/2020
1.1.1 414 10/17/2020
1.1.0 401 10/14/2020
1.0.4 472 11/7/2020
1.0.3 369 10/28/2020
1.0.2 369 10/28/2020
1.0.1 422 10/17/2020
1.0.0 414 10/14/2020