SimpleUseAspireRabbitMQ 2.0.0
dotnet add package SimpleUseAspireRabbitMQ --version 2.0.0
NuGet\Install-Package SimpleUseAspireRabbitMQ -Version 2.0.0
<PackageReference Include="SimpleUseAspireRabbitMQ" Version="2.0.0" />
paket add SimpleUseAspireRabbitMQ --version 2.0.0
#r "nuget: SimpleUseAspireRabbitMQ, 2.0.0"
// Install SimpleUseAspireRabbitMQ as a Cake Addin #addin nuget:?package=SimpleUseAspireRabbitMQ&version=2.0.0 // Install SimpleUseAspireRabbitMQ as a Cake Tool #tool nuget:?package=SimpleUseAspireRabbitMQ&version=2.0.0
Simple RabbitMQ Use In Aspire.NET
This is a simple FrameWork of how to use RabbitMQ in Aspire .NET .Asp.net core .
Install RabbitMQClint on your Aspire.Host project and Add rabbitmq container please verify your rabbitmq container is WithReference in your project like this:
Install this framework on your project.
Add the ExtensionFunctions in your program.cs file.
Use IEventBus to publish messages.
Use IEventHandler/IEventJsonHandler/IEventStringHandler to subscribe to messages. in this framework,you should paste the EventAttribute in your event class. like this:
Note: your eventHandler's class only should have one parameter: IServiceProvider,you can use it to get any service in your eventHandler.
like this:
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. |
-
net8.0
- Aspire.RabbitMQ.Client (>= 8.0.1)
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.0.0 | 98 | 5/23/2024 |
1.2.0-preview | 57 | 5/12/2024 |
1.1.3-preview | 56 | 5/2/2024 |
1.1.2-preview | 45 | 5/2/2024 |
1.1.1-preview | 51 | 5/2/2024 |
1.1.0-preview | 51 | 5/2/2024 |
1.0.1-preview | 66 | 5/1/2024 |
1.0.0-preview | 70 | 5/1/2024 |