RabbitLight 1.0.3
See the version list below for details.
dotnet add package RabbitLight --version 1.0.3
NuGet\Install-Package RabbitLight -Version 1.0.3
<PackageReference Include="RabbitLight" Version="1.0.3" />
paket add RabbitLight --version 1.0.3
#r "nuget: RabbitLight, 1.0.3"
// Install RabbitLight as a Cake Addin
#addin nuget:?package=RabbitLight&version=1.0.3
// Install RabbitLight as a Cake Tool
#tool nuget:?package=RabbitLight&version=1.0.3
RabbitLight
RabbitLight is a RabbitMQ Client for .NET developed with simplicity in mind.
Messages are routed to their respective consumers using Data Annotations, 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("exchange1", "key1", "Hello, World!");
Product | Versions 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. |
-
.NETStandard 2.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.CSharp (>= 4.5.0)
- Microsoft.Extensions.Configuration.Binder (>= 3.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 3.1.0)
- Newtonsoft.Json (>= 12.0.1)
- RabbitMQ.Client (>= 5.1.2 && < 6.0.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 |
---|---|---|
2.3.0 | 254 | 2/5/2023 |
2.2.3 | 4,200 | 6/17/2021 |
2.2.2 | 333 | 4/19/2021 |
2.2.1 | 317 | 4/19/2021 |
2.2.0 | 347 | 1/30/2021 |
2.1.0 | 339 | 1/30/2021 |
2.0.0 | 397 | 11/17/2020 |
1.2.4 | 512 | 11/7/2020 |
1.2.3 | 397 | 10/28/2020 |
1.2.2 | 379 | 10/28/2020 |
1.2.1 | 467 | 10/17/2020 |
1.2.0 | 421 | 10/14/2020 |
1.1.4 | 467 | 11/7/2020 |
1.1.3 | 378 | 10/28/2020 |
1.1.2 | 374 | 10/28/2020 |
1.1.1 | 416 | 10/17/2020 |
1.1.0 | 403 | 10/14/2020 |
1.0.4 | 476 | 11/7/2020 |
1.0.3 | 372 | 10/28/2020 |
1.0.2 | 371 | 10/28/2020 |
1.0.1 | 424 | 10/17/2020 |
1.0.0 | 416 | 10/14/2020 |