Furion.EventBus 5.0.0-preview.1.20230701.2

This is a prerelease version of Furion.EventBus.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Furion.EventBus --version 5.0.0-preview.1.20230701.2                
NuGet\Install-Package Furion.EventBus -Version 5.0.0-preview.1.20230701.2                
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="Furion.EventBus" Version="5.0.0-preview.1.20230701.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Furion.EventBus --version 5.0.0-preview.1.20230701.2                
#r "nuget: Furion.EventBus, 5.0.0-preview.1.20230701.2"                
#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.
// Install Furion.EventBus as a Cake Addin
#addin nuget:?package=Furion.EventBus&version=5.0.0-preview.1.20230701.2&prerelease

// Install Furion.EventBus as a Cake Tool
#tool nuget:?package=Furion.EventBus&version=5.0.0-preview.1.20230701.2&prerelease                

先知

一个应用程序框架,您可以将它集成到任何 .NET/C# 应用程序中。


开发背景

当前的 Furion v4 版本已经变得成熟且稳定,但仍存在以下问题:

  • 早期开发进展迅速,很多代码存在仓促上线的情况,缺乏充分思考和考虑
  • 所有模块都包含在一个项目中,无法按需加载和安装
  • 过度使用静态类和静态内存存储,不利于进行单元测试和数据隔离
  • 对于 .NET Core 的掌握程度有限,导致历史代码臃肿且高度耦合
  • 代码架构和设计模式缺乏统一性,可以说是一个大杂烩
  • 在早期对用户需求掌握不足,导致后期不断打补丁来进行改进,稍有改动就可能引发破坏性的修改
  • 模块、类型、属性、方法、属性等命名混乱,很难从字面上理解其功能含义
  • 模块功能封装过度,配置参数繁杂
  • 框架示例混乱,用户只能自行摸索最佳实践
  • 虽有单元测试,但是非常混乱

框架技术

Furion v5 版本采用 C# 12 和 .NET 8 进行开发。

开发指导

  • 实现完全无第三方依赖(除微软官方提供外)
  • 实现彻底模块化,每个模块都是独立的项目
  • 每个模块的单元测试覆盖率要达到 92%以上
  • 确保每个类型、属性、字段、方法都有详细的注释
  • 尽可能避免使用静态内存存储
  • 所有模块都采用上下文和构建器模式进行设计
  • 所有模块都采用依赖注入/控制反转的设计模式
  • 所有模块都采用约定大于配置设计原则
  • 尽可能为每个模块提供看板功能
  • 提供所有模块最佳实践示例

模块状态

模块名称 状态 单元测试 版本 文档
Furion.Core nuget ⚠️
Furion.DependencyInjection nuget ⚠️
Furion.DependencyInjection.Named nuget ⚠️
Furion.Component nuget ⚠️
Furion.Component.AspNetCore nuget ⚠️
Furion.Component.Hosting nuget ⚠️
Furion.Configuration nuget ⚠️
Furion.Configuration.ManifestResource nuget ⚠️
Furion.Validation ⚠️
Furion.Validation.AspNetCore ⚠️

状态说明

图标 描述
⚠️ 待定
进行中
完成
💔 随时抛弃
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. 
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
5.0.0-preview.1.20240813.1 60 8/13/2024
5.0.0-preview.1.20231116.1 181 11/16/2023
5.0.0-preview.1.20230826.1 85 8/25/2023
5.0.0-preview.1.20230824.1 72 8/23/2023
5.0.0-preview.1.20230822.1 72 8/21/2023
5.0.0-preview.1.20230805.2 77 8/5/2023
5.0.0-preview.1.20230805.1 83 8/4/2023
5.0.0-preview.1.20230804.2 78 8/4/2023
5.0.0-preview.1.20230804.1 80 8/3/2023
5.0.0-preview.1.20230801.1 82 8/1/2023
5.0.0-preview.1.20230731.4 84 7/31/2023
5.0.0-preview.1.20230731.3 80 7/31/2023
5.0.0-preview.1.20230731.2 77 7/30/2023
5.0.0-preview.1.20230731.1 81 7/30/2023
5.0.0-preview.1.20230730.1 82 7/29/2023
5.0.0-preview.1.20230729.1 77 7/28/2023
5.0.0-preview.1.20230728.2 84 7/28/2023
5.0.0-preview.1.20230728.1 81 7/27/2023
5.0.0-preview.1.20230727.1 77 7/27/2023
5.0.0-preview.1.20230726.1 82 7/26/2023
5.0.0-preview.1.20230724.1 89 7/24/2023
5.0.0-preview.1.20230722.1 88 7/21/2023
5.0.0-preview.1.20230720.4 78 7/20/2023
5.0.0-preview.1.20230720.1 83 7/19/2023
5.0.0-preview.1.20230719.1 78 7/18/2023
5.0.0-preview.1.20230718.4 80 7/18/2023
5.0.0-preview.1.20230718.3 80 7/18/2023
5.0.0-preview.1.20230718.2 80 7/18/2023
5.0.0-preview.1.20230718.1 78 7/17/2023
5.0.0-preview.1.20230717.1 80 7/16/2023
5.0.0-preview.1.20230716.1 80 7/15/2023
5.0.0-preview.1.20230715.1 80 7/14/2023
5.0.0-preview.1.20230713.1 81 7/12/2023
5.0.0-preview.1.20230711.1 79 7/11/2023
5.0.0-preview.1.20230710.1 76 7/10/2023
5.0.0-preview.1.20230707.2 83 7/7/2023
5.0.0-preview.1.20230707.1 78 7/6/2023
5.0.0-preview.1.20230704.1 85 7/3/2023
5.0.0-preview.1.20230701.3 80 7/2/2023
5.0.0-preview.1.20230701.2 83 6/30/2023
5.0.0-preview.1.20230701.1 82 6/30/2023
5.0.0-preview.1.20230630.1 76 6/29/2023
5.0.0-preview.1.20230621.8 73 6/20/2023
5.0.0-preview.1.20230620.32 75 6/20/2023
5.0.0-preview.1.20230620.30 76 6/20/2023