VOOZH about

URL: https://www.nuget.org/packages/Galosoft.IaaS.RocketMQ/

⇱ NuGet Gallery | Galosoft.IaaS.RocketMQ 25.9.29.8-rc3




Galosoft.IaaS.RocketMQ 25.9.29.8-rc3

This is a prerelease version of Galosoft.IaaS.RocketMQ.
dotnet add package Galosoft.IaaS.RocketMQ --version 25.9.29.8-rc3
 
 
NuGet\Install-Package Galosoft.IaaS.RocketMQ -Version 25.9.29.8-rc3
 
 
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="Galosoft.IaaS.RocketMQ" Version="25.9.29.8-rc3" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Galosoft.IaaS.RocketMQ" Version="25.9.29.8-rc3" />
 
Directory.Packages.props
<PackageReference Include="Galosoft.IaaS.RocketMQ" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Galosoft.IaaS.RocketMQ --version 25.9.29.8-rc3
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Galosoft.IaaS.RocketMQ, 25.9.29.8-rc3"
 
 
#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.
#:package Galosoft.IaaS.RocketMQ@25.9.29.8-rc3
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Galosoft.IaaS.RocketMQ&version=25.9.29.8-rc3&prerelease
 
Install as a Cake Addin
#tool nuget:?package=Galosoft.IaaS.RocketMQ&version=25.9.29.8-rc3&prerelease
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

DI


 services.AddRocketMQ(ctx.Configuration);//新增:rmqclient galo@2023-9-28 10:18:41

发送及函数接受消息

 using (var scope = _scopeFactory.CreateScope())
 {
 var sp = scope.ServiceProvider;
 var rmq = sp.GetRequiredService<RmqTemplate>();

 var topic = "oc_test";
 var tag = "order_created";
 await rmq.SendAsync(new SpringBootMqTestRequest(1), topic, tag);
 //await _rmq.HandleAsync<SpringBootMqTestRequest>(async msg =>
 //{
 // await Task.Delay(100);
 // return true;
 //}, topic, "*");
 //await _rmq.HandleAsync<SpringBootMqTestRequest>(async msg =>
 //{
 // await Task.Delay(100);
 // return true;
 //}, topic, tag);
 }

类定义接受消息

 [Handler]
 internal class SpringBoottRmqTestHandler : IMessageHandler<SpringBootMqTestRequest>
 {
 /// <summary>
 /// ConsumerGroup不设置时 配置文件的值或者默认值<see cref="Env.GetApplicationContext"/>,设置ConsumerGroup 为发布订阅模式,同一个ConsumerGroup为工作者模式 galoS@2024-12-5 14:41:20
 /// </summary>
 /// <param name="msg"></param>
 /// <returns></returns>
 [RmqHandler("cs_first")]
 public async Task<bool> HandleAsync(SpringBootMqTestRequest msg)
 {
 Tracer.Trace(msg.Id, "1");
 await Task.Delay(10);
 return true;
 }
 }
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows 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
25.9.29.8-rc3 181 9/29/2025
25.1.16.2-nj 113 1/16/2025
24.12.4.3-nj 127 12/5/2024
24.12.4.2-nj 102 12/5/2024