CodeWF.Toolkit.EventBus.Socket
1.1.10
dotnet add package CodeWF.Toolkit.EventBus.Socket --version 1.1.10
NuGet\Install-Package CodeWF.Toolkit.EventBus.Socket -Version 1.1.10
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="CodeWF.Toolkit.EventBus.Socket" Version="1.1.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeWF.Toolkit.EventBus.Socket" Version="1.1.10" />
<PackageReference Include="CodeWF.Toolkit.EventBus.Socket" />
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 CodeWF.Toolkit.EventBus.Socket --version 1.1.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeWF.Toolkit.EventBus.Socket, 1.1.10"
#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 CodeWF.Toolkit.EventBus.Socket@1.1.10
#: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=CodeWF.Toolkit.EventBus.Socket&version=1.1.10
#tool nuget:?package=CodeWF.Toolkit.EventBus.Socket&version=1.1.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CodeWF.Toolkit.EventBus.Socket
基于 TCP 的分布式事件总线:Pub/Sub、Query/Response、心跳保活、断线重连与离线消息补发,不依赖第三方消息队列。Distributed event bus over TCP with heartbeat, reconnect and offline replay, without third-party MQ.
安装
dotnet add package CodeWF.Toolkit.EventBus.Socket
依赖本仓 CodeWF.Toolkit.EventBus、CodeWF.Toolkit.NetWrapper、CodeWF.Toolkit.Lang(随包自动安装);目标框架 net10.0。
快速使用
var server = new EventServer();
server.Start("127.0.0.1", 39561);
var client = new EventClient();
await client.ConnectAsync("127.0.0.1", 39561);
client.Subscribe<string>("demo.greeting", msg => Console.WriteLine(msg));
client.Publish("demo.greeting", "hello", out _);
var (result, error) = await client.QueryAsync<Ping, Pong>(ping);
- Pub/Sub 与 Query/Response 语义,底层传输由 NetWrapper 承担。
- 心跳保活、断线重连、离线消息补发;
EventBusOptions配置端口与行为。
文档
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- CodeWF.Toolkit.EventBus (>= 1.1.10)
- CodeWF.Toolkit.Lang (>= 1.1.10)
- CodeWF.Toolkit.NetWrapper (>= 1.1.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 11.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.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.10 | 50 | 11/20/2026 |
| 1.1.9 | 87 | 11/16/2026 |
| 1.1.8 | 94 | 11/16/2026 |
| 1.1.7 | 82 | 11/16/2026 |
| 1.1.6 | 74 | 11/8/2026 |
| 1.1.5 | 64 | 11/8/2026 |
| 1.1.4 | 64 | 11/8/2026 |
| 1.1.3 | 64 | 11/8/2026 |
| 1.1.2 | 111 | 11/1/2026 |
| 1.1.1 | 105 | 10/26/2026 |
| 1.1.0 | 93 | 10/22/2026 |
| 1.1.0-alpha.1 | 62 | 10/21/2026 |
| 1.0.0.27 | 105 | 10/19/2026 |
| 1.0.0.26 | 107 | 10/16/2026 |
| 1.0.0.25 | 94 | 10/16/2026 |
| 1.0.0.24 | 107 | 10/15/2026 |
| 1.0.0.23 | 99 | 10/15/2026 |
| 1.0.0.22 | 96 | 10/15/2026 |
| 1.0.0.20 | 97 | 10/15/2026 |
| 1.0.0.19 | 107 | 10/15/2026 |
Loading failed