Virtuesoft.Framework.Queue.Extensions
1.0.6
dotnet add package Virtuesoft.Framework.Queue.Extensions --version 1.0.6
NuGet\Install-Package Virtuesoft.Framework.Queue.Extensions -Version 1.0.6
<PackageReference Include="Virtuesoft.Framework.Queue.Extensions" Version="1.0.6" />
paket add Virtuesoft.Framework.Queue.Extensions --version 1.0.6
#r "nuget: Virtuesoft.Framework.Queue.Extensions, 1.0.6"
// Install Virtuesoft.Framework.Queue.Extensions as a Cake Addin #addin nuget:?package=Virtuesoft.Framework.Queue.Extensions&version=1.0.6 // Install Virtuesoft.Framework.Queue.Extensions as a Cake Tool #tool nuget:?package=Virtuesoft.Framework.Queue.Extensions&version=1.0.6
消息队列扩展
services.AddQueueService<RabbitQueueService>(new RabbitQueuOptions() {
Host = Configuration["rabbit.queque.host"],
Port = int.Parse(Configuration["rabbit.queque.port"]),
User = Configuration["rabbit.queque.user"],
Password = Configuration["rabbit.queque.user.password"],
VirtualHost = "/"
});
发送消息
await Context.SendQueueMessageAsync("rabbit.queque.name", message);
接收消息
var queque = Context.RequestServices.GetService(typeof(IQueueService)) as TRabbitQueueService;
await queque.ConnectionAsync("rabbit.queque.name", (sender, message) =>
{
var msg = Encoding.UTF8.GetString(message as byte[]);
});
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 | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.0)
- Virtuesoft.Framework.Queue.Core (>= 1.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.
消息队列扩展