Fast.EventBus
3.5.2
dotnet add package Fast.EventBus --version 3.5.2
NuGet\Install-Package Fast.EventBus -Version 3.5.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="Fast.EventBus" Version="3.5.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fast.EventBus" Version="3.5.2" />
<PackageReference Include="Fast.EventBus" />
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 Fast.EventBus --version 3.5.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Fast.EventBus, 3.5.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.
#addin nuget:?package=Fast.EventBus&version=3.5.2
#tool nuget:?package=Fast.EventBus&version=3.5.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
中 | En
Fast.NET(v3)
一个应用程序工具类(框架),您可以将它集成到任何 .NET
应用程序中。
技术选择
Fast.NET
v3 版本采用C#10
和.NET6
.NET7
.NET8
进行开发。
项目背景
过去 .NET
在国内并没有很好的开源环境和社区,随着国内使用 .NET
的程序猿越来越多,慢慢的国内的开源环境和社区也越来越好。
各种 .NET
开源框架,也应时代而生。
本人作为在 .NET
行业中从业 N年
的 小菜鸟
,也用过了很多开源的框架,所以想基于自己的工作经验和经历,为 .NET
开源做出一份小小的贡献。
安装
选择您需要的工具模块库进行安装。例如:
dotnet add package Fast.xxx
例子
按需引入使用~~~
using Fast.Cache;
using Fast.DependencyInjection;
using Fast.DynamicApplication;
using Fast.EventBus;
using Fast.JwtBearer;
using Fast.Logging;
using Fast.Mapster;
using Fast.NET.Core;
using Fast.Serialization;
using Fast.SqlSugar;
using Fast.Swagger;
using Fast.UnifyResult;
var builder = WebApplication.CreateBuilder(args);
// 初始化 框架
builder.Initialize();
// 添加日志服务
builder.Services.AddLoggingService(builder.Environment);
// 添加 Gzip 压缩
builder.Services.AddGzipCompression();
// 添加跨域服务
builder.Services.AddCorsAccessor();
// 添加 Mapster 服务
builder.Services.AddMapster();
// 添加序列化服务
builder.Services.AddSerialization();
// 添加依赖注入服务
builder.Services.AddDependencyInjection();
// 添加事件总线服务
builder.Services.AddEventBus();
// 添加 Redis 缓存服务
builder.Services.AddCache();
// 添加 JwtBearer 服务
builder.Services.AddJwtBearer(builder.Configuration);
// 添加 SqlSugar 服务
builder.Services.AddSqlSugar(builder.Configuration);
// Add controller.
builder.Services.AddControllers();
// 添加动态Api服务
builder.Services.AddDynamicApplication();
// 添加规范化返回服务
builder.Services.AddUnifyResult(builder.Configuration);
// 添加规范化文档服务
builder.Services.AddSwaggerDocuments(builder.Configuration);
var app = builder.Build();
// Mandatory Https.
app.UseHttpsRedirection();
app.UseStaticFiles();
// Enable backward reading.
app.EnableBuffering();
app.UseRouting();
app.MapControllers();
// 启用规范化文档
app.UseSwaggerDocuments();
app.Run();
文档
很抱歉,我正在努力中...
更新日志
更新日志 点击查看
详细功能(模块说明)
模块名称 | 状态 | 版本 | 说明 | 备注 |
---|---|---|---|---|
Fast.Cache | ✅ | Fast.NET 框架缓存模块库 | 一个在 .NET 行业中从业 N年 的 小菜鸟 常用的 Redis 缓存库,基于 CSRedisCore 封装 |
|
Fast.DependencyInjection | ✅ | Fast.NET 框架依赖注入模块库 | ||
Fast.DynamicApplication | ✅ | Fast.NET 框架动态Api模块库 | ||
Fast.EventBus | ✅ | Fast.NET 框架事件总线模块库 | ||
Fast.IaaS | ✅ | Fast.NET 框架基础设施模块库 | 一个在 .NET 行业中从业 N年 的 小菜鸟 常用的拓展工具类,亲自推荐,绝对好用!!! |
|
Fast.JwtBearer | ✅ | Fast.NET 框架 JwtBearer 模块库 | ||
Fast.Logging | ✅ | Fast.NET 框架日志模块库 | ||
Fast.Mapster | ✅ | Fast.NET 框架对象映射模块库 | 基于 Mapster 封装 | |
Fast.NET.Core | ✅ | Fast.NET 框架核心模块库 | 因 Fast.Core 已存在 Nuget 包,故改名 Fast.NET.Core | |
Fast.Runtime | ✅ | Fast.NET 框架核心运行库 | ||
Fast.Serialization.Newtonsoft.Json | ✅ | Fast.NET 框架 Newtonsoft.Json 序列化模块库 | 基于 Newtonsoft.Json 封装 | |
Fast.Serialization.System.Text.Json | ✅ | Fast.NET 框架 System.Text.Json 序列化模块库 | 基于 System.Text.Json 封装 | |
Fast.SqlSugar | ⏳ | Fast.NET 框架 SqlSugar 模块库 | 基于 SqlSugar 封装 | |
Fast.Swagger | ✅ | Fast.NET 框架 Swagger 模块库 | ||
Fast.UnifyResult | ✅ | Fast.NET 框架RESTful风格统一返回模块库 |
近期计划
- [✅] 基础设施模块
- [✅] 核心模块
- [✅] 跨域处理模块
- [✅] 对象映射模块
- [✅] Redis缓存模块
- [✅] 序列化模块
- [✅] 依赖注入模块
- [✅] 动态API模块
- [✅] 规范化文档模块
- [✅] 规范化返回模块
- [✅] 日志模块
- [✅] 事件总线
- [✅] SqlSugar
- [⚠️] ...
状态说明
图标 描述 ⚠️ 待定 ⏳ 进行中 ✅ 完成 💔 随时抛弃
协议
Fast.NET 遵循 Apache-2.0 开源协议,欢迎大家提交 PR
或 Issue
。
Apache开源许可证
版权所有 © 2018-Now 小方
许可授权:
本协议授予任何获得本软件及其相关文档(以下简称“软件”)副本的个人或组织。
在遵守本协议条款的前提下,享有使用、复制、修改、合并、发布、分发、再许可、销售软件副本的权利:
1.所有软件副本或主要部分必须保留本版权声明及本许可协议。
2.软件的使用、复制、修改或分发不得违反适用法律或侵犯他人合法权益。
3.修改或衍生作品须明确标注原作者及原软件出处。
特别声明:
- 本软件按“原样”提供,不提供任何形式的明示或暗示的保证,包括但不限于对适销性、适用性和非侵权的保证。
- 在任何情况下,作者或版权持有人均不对因使用或无法使用本软件导致的任何直接或间接损失的责任。
- 包括但不限于数据丢失、业务中断等情况。
免责条款:
禁止利用本软件从事危害国家安全、扰乱社会秩序或侵犯他人合法权益等违法活动。
对于基于本软件二次开发所引发的任何法律纠纷及责任,作者不承担任何责任。
由于目前还属于开发阶段,所有功能皆不是很稳定,所以暂且使用 Apache-2.0 开源协议。后续等所有功能都稳定后,会采用 MIT 开源协议。
团队成员
成员 | 技术 | 昵称 | 座右铭 |
---|---|---|---|
小方 | 全栈 | 1.8K仔 | 接受自己的平庸和普通,是成长的必修课 <br> 你羡慕的生活都是你没熬过的苦 <br> 当你的能力还撑不起你的野心时,你就需要静下心来 好好学习 |
编码环境
名称 | 备注 |
---|---|
Visual Studio 2022 | |
Visual Studio Code | |
Resharper | 您在代码中所看到的以 // ReSharper 开头的注释,就是此应用生成的为了避免一些不必要的警告或提示 |
免责申明
请勿用于违反我国法律的项目上
本框架可以说是在各位前辈的基础上继续进行造轮子,只是比市面上的一些框架会更简洁,更方便。更好用我不知道是否能相谈。
补充说明
如果对您有帮助,您可以点右上角 “Star” 收藏一下 ,获取第一时间更新,谢谢!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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 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.
-
net6.0
- Fast.Runtime (>= 3.5.2)
-
net7.0
- Fast.Runtime (>= 3.5.2)
-
net8.0
- Fast.Runtime (>= 3.5.2)
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 |
---|---|---|
3.5.2 | 63 | 5/22/2025 |
3.5.1 | 79 | 5/21/2025 |
3.5.0 | 125 | 5/2/2024 |
3.4.20 | 142 | 3/14/2024 |
3.4.19.7 | 151 | 3/6/2024 |
3.4.19.6 | 159 | 3/6/2024 |
3.4.19.5 | 135 | 2/28/2024 |
3.4.19.4 | 134 | 2/27/2024 |
3.4.19.3 | 148 | 2/26/2024 |
3.4.19.2 | 146 | 2/23/2024 |
3.4.19.1 | 142 | 2/23/2024 |
3.4.19 | 141 | 2/22/2024 |
3.4.18.18 | 164 | 2/2/2024 |
3.4.18.17 | 136 | 2/1/2024 |
3.4.18.16 | 133 | 2/1/2024 |
3.4.18.15 | 133 | 2/1/2024 |
3.4.18.14 | 129 | 2/1/2024 |
3.4.18.13 | 126 | 2/1/2024 |
3.4.18.12 | 129 | 2/1/2024 |
3.4.18.11 | 129 | 2/1/2024 |
3.4.18.10 | 122 | 1/31/2024 |
3.4.18.9 | 127 | 1/31/2024 |
3.4.18.8 | 130 | 1/31/2024 |
3.4.18.7 | 117 | 1/31/2024 |
3.4.18.6 | 135 | 1/30/2024 |
3.4.18.5 | 121 | 1/30/2024 |
3.4.18.4 | 128 | 1/30/2024 |
3.4.18.3 | 128 | 1/29/2024 |
3.4.18.2 | 135 | 1/29/2024 |
3.4.18.1 | 128 | 1/29/2024 |
3.4.18 | 132 | 1/27/2024 |
3.4.17.10 | 127 | 1/24/2024 |
3.4.17.9 | 135 | 1/24/2024 |
3.4.17.8 | 135 | 1/24/2024 |
3.4.17.7 | 138 | 1/23/2024 |
3.4.17.6 | 143 | 1/20/2024 |
3.4.17.5 | 136 | 1/20/2024 |
3.4.17.4 | 145 | 1/20/2024 |
3.4.17.3 | 132 | 1/20/2024 |
3.4.17.2 | 131 | 1/20/2024 |
3.4.17.1 | 132 | 1/18/2024 |
3.4.17 | 134 | 1/18/2024 |
3.4.16 | 132 | 1/17/2024 |
3.4.15 | 154 | 1/12/2024 |
3.4.14 | 137 | 1/12/2024 |
3.4.13 | 149 | 1/11/2024 |
3.4.12 | 137 | 1/10/2024 |
3.4.11.1 | 138 | 1/10/2024 |
3.4.11 | 127 | 1/10/2024 |
3.4.10.4 | 155 | 1/9/2024 |
3.4.10.3 | 147 | 1/9/2024 |
3.4.10.2 | 133 | 1/9/2024 |
3.4.10.1 | 157 | 1/9/2024 |
3.4.10 | 150 | 1/9/2024 |