CodeWF.Toolkit.EventBus.Prism
1.1.10
dotnet add package CodeWF.Toolkit.EventBus.Prism --version 1.1.10
NuGet\Install-Package CodeWF.Toolkit.EventBus.Prism -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.Prism" 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.Prism" Version="1.1.10" />
<PackageReference Include="CodeWF.Toolkit.EventBus.Prism" />
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.Prism --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.Prism, 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.Prism@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.Prism&version=1.1.10
#tool nuget:?package=CodeWF.Toolkit.EventBus.Prism&version=1.1.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CodeWF.Toolkit.EventBus.Prism
事件总线的 Prism/DryIoc 容器集成:在 Prism 应用中完成注册、处理器扫描与启动。Prism/DryIoc container integration for the event bus.
安装
dotnet add package CodeWF.Toolkit.EventBus.Prism
依赖 Prism.Core、DryIoc.dll 与本仓 CodeWF.Toolkit.EventBus、CodeWF.Toolkit.Lang(随包自动安装);目标框架 net10.0。适合 Prism.DryIoc.Avalonia 桌面应用。
用法
通过 Prism.Ioc 容器扩展在应用启动流程中完成事件总线注册、[EventHandler] 处理器扫描与启动,处理器实例从 Prism 容器解析,构造依赖由容器注入:
public override void RegisterTypes(IContainerRegistry containerRegistry)
{
containerRegistry.AddEventBus(typeof(SomeHandler).Assembly);
}
public override void OnInitialized()
{
// 启动总线并扫描处理器
Container.UseEventBus(typeof(SomeHandler).Assembly);
}
进程内总线的订阅、Command/Query 用法与核心包一致,见 CodeWF.Toolkit.EventBus。
文档
| 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)
- DryIoc.dll (>= 4.8.0)
- Prism.Core (>= 8.1.97)
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 | 51 | 11/20/2026 |
| 1.1.9 | 89 | 11/16/2026 |
| 1.1.8 | 92 | 11/16/2026 |
| 1.1.7 | 84 | 11/16/2026 |
| 1.1.6 | 96 | 11/8/2026 |
| 1.1.5 | 90 | 11/8/2026 |
| 1.1.4 | 84 | 11/8/2026 |
| 1.1.3 | 93 | 11/8/2026 |
| 1.1.2 | 105 | 11/1/2026 |
| 1.1.1 | 100 | 10/26/2026 |
| 1.1.0 | 108 | 10/22/2026 |
| 1.1.0-alpha.1 | 66 | 10/21/2026 |
| 1.0.0.27 | 96 | 10/19/2026 |
| 1.0.0.26 | 103 | 10/16/2026 |
| 1.0.0.25 | 98 | 10/16/2026 |
| 1.0.0.24 | 114 | 10/15/2026 |
| 1.0.0.23 | 115 | 10/15/2026 |
| 1.0.0.22 | 98 | 10/15/2026 |
| 1.0.0.20 | 95 | 10/15/2026 |
| 1.0.0.19 | 109 | 10/15/2026 |
Loading failed