YaseiAkira.EasyNetQ 1.0.0

Install-Package YaseiAkira.EasyNetQ -Version 1.0.0
dotnet add package YaseiAkira.EasyNetQ --version 1.0.0
<PackageReference Include="YaseiAkira.EasyNetQ" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YaseiAkira.EasyNetQ --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: YaseiAkira.EasyNetQ, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install YaseiAkira.EasyNetQ as a Cake Addin
#addin nuget:?package=YaseiAkira.EasyNetQ&version=1.0.0

// Install YaseiAkira.EasyNetQ as a Cake Tool
#tool nuget:?package=YaseiAkira.EasyNetQ&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

EasyNetQ的简单封装

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
1.0.0 73 3/2/2021

使用:
     注意:先安装RabbitMQ

     安装该包后:

     1.启动
     YaseiAkiraEasyNetQManager.Start(connectionString);
     2.关注队列,并实现自己的处理逻辑
     YaseiAkiraEasyNetQManager.SubscribeTopicAsync("队列名称","下单通知",(msg)=>{  //处理逻辑 });
     3.发布消息
     var msg = new AJEasyNetQMessage {Topic = "下单通知",Body = "订单号"};
     YaseiAkiraEasyNetQManager.PublishTopicAsync(msg);