By.Core.EventBus 1.0.1

dotnet add package By.Core.EventBus --version 1.0.1
                    
NuGet\Install-Package By.Core.EventBus -Version 1.0.1
                    
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="By.Core.EventBus" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="By.Core.EventBus" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="By.Core.EventBus" />
                    
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 By.Core.EventBus --version 1.0.1
                    
#r "nuget: By.Core.EventBus, 1.0.1"
                    
#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 By.Core.EventBus@1.0.1
                    
#: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=By.Core.EventBus&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=By.Core.EventBus&version=1.0.1
                    
Install as a Cake Tool

By.Core.EventBus

基于 RabbitMQ 的事件总线组件,提供简单易用的发布/订阅模式实现。

安装

dotnet add package By.Core.EventBus

快速开始

配置服务

services.AddEventBus(configuration);

发布事件

await eventBus.PublishAsync(new YourEvent { ... });

订阅事件

eventBus.Subscribe<YourEvent, YourEventHandler>();

配置

appsettings.json 中添加 RabbitMQ 配置:

{
  "RabbitMQ": {
    "HostName": "localhost",
    "Port": 5672,
    "UserName": "guest",
    "Password": "guest"
  }
}

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on By.Core.EventBus:

Package Downloads
BoYunCommon

rabbitMq工具

By.Core.Base

rabbitMq工具

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 735 12/3/2025