YaseiAkira.EasyNetQ
1.0.0
dotnet add package YaseiAkira.EasyNetQ --version 1.0.0
NuGet\Install-Package YaseiAkira.EasyNetQ -Version 1.0.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="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 and Polyglot Notebooks. 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的简单封装
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- EasyNetQ (>= 6.3.1)
- log4net (>= 2.0.8)
- System.Numerics.Vectors (>= 4.5.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 |
---|---|---|
1.0.0 | 345 | 3/2/2021 |
使用:
注意:先安装RabbitMQ
安装该包后:
1.启动
YaseiAkiraEasyNetQManager.Start(connectionString);
2.关注队列,并实现自己的处理逻辑
YaseiAkiraEasyNetQManager.SubscribeTopicAsync("队列名称","下单通知",(msg)=>{ //处理逻辑 });
3.发布消息
var msg = new AJEasyNetQMessage {Topic = "下单通知",Body = "订单号"};
YaseiAkiraEasyNetQManager.PublishTopicAsync(msg);