![]() |
VOOZH | about |
dotnet add package Fast.DependencyInjection --version 3.5.20
NuGet\Install-Package Fast.DependencyInjection -Version 3.5.20
<PackageReference Include="Fast.DependencyInjection" Version="3.5.20" />
<PackageVersion Include="Fast.DependencyInjection" Version="3.5.20" />Directory.Packages.props
<PackageReference Include="Fast.DependencyInjection" />Project file
paket add Fast.DependencyInjection --version 3.5.20
#r "nuget: Fast.DependencyInjection, 3.5.20"
#:package Fast.DependencyInjection@3.5.20
#addin nuget:?package=Fast.DependencyInjection&version=3.5.20Install as a Cake Addin
#tool nuget:?package=Fast.DependencyInjection&version=3.5.20Install as a Cake Tool
中 | En
一个应用程序工具类(框架),您可以将它集成到任何 .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.OpenApi;
using Fast.Serialization;
using Fast.SqlSugar;
using Fast.Swagger;
using Fast.UnifyResult;
var builder = WebApplication.CreateBuilder(args);
// 初始化 框架
builder.Initialize();
// 添加序列化服务
builder.Services.AddSerialization();
// 添加日志服务
builder.Services.AddLoggingService(builder.Environment);
// 添加跨域服务
builder.Services.AddCorsAccessor();
// 添加 Gzip 压缩
builder.Services.AddGzipCompression();
// 添加 Mapster 服务
builder.Services.AddMapster();
// 添加依赖注入服务
builder.Services.AddDependencyInjection();
// 添加事件总线服务
builder.Services.AddEventBus();
// 添加 Redis 缓存服务
builder.Services.AddCache();
// 添加 SqlSugar 服务
builder.Services.AddSqlSugar(builder.Configuration);
// 添加 JwtBearer 服务
builder.Services.AddJwtBearer(builder.Configuration);
// Add controller.
builder.Services.AddControllers();
// 添加动态Api服务
builder.Services.AddDynamicApplication();
// 添加规范化返回服务
builder.Services.AddUnifyResult(builder.Configuration);
// 添加规范化文档服务
builder.Services.AddSwaggerDocuments(builder.Configuration);
// 添加 OpenApi 服务
builder.Services.AddOpenApi(builder.Configuration);
var app = builder.Build();
// Mandatory Https.
app.UseHttpsRedirection();
app.UseStaticFiles();
// Enable backward reading.
app.EnableBuffering();
app.UseRouting();
// 启用规范化文档
app.UseSwaggerDocuments();
app.MapControllers();
app.Run();
很抱歉,我正在努力中...
更新日志 点击查看
| 模块名称 | 状态 | 版本 | 说明 | 备注 |
|---|---|---|---|---|
| Fast.Cache | ✅ | 👁 nuget |
Fast.NET 框架缓存模块库 | 一个在 .NET 行业中从业 N年 的 小菜鸟 常用的 Redis 缓存库,基于 CSRedisCore 封装 |
| Fast.DependencyInjection | ✅ | 👁 nuget |
Fast.NET 框架依赖注入模块库 | |
| Fast.DynamicApplication | ✅ | 👁 nuget |
Fast.NET 框架动态 Api 模块库 | |
| Fast.EventBus | ✅ | 👁 nuget |
Fast.NET 框架事件总线模块库 | |
| Fast.IaaS | ✅ | 👁 nuget |
Fast.NET 框架基础设施模块库 | 一个在 .NET 行业中从业 N年 的 小菜鸟 常用的拓展工具类,亲自推荐,绝对好用!!! |
| Fast.JwtBearer | ✅ | 👁 nuget |
Fast.NET 框架 JwtBearer 模块库 | |
| Fast.Logging | ✅ | 👁 nuget |
Fast.NET 框架日志模块库 | |
| Fast.Mapster | ✅ | 👁 nuget |
Fast.NET 框架对象映射模块库 | 基于 Mapster 封装 |
| Fast.NET.Core | ✅ | 👁 nuget |
Fast.NET 框架核心模块库 | 因 Fast.Core 已存在 Nuget 包,故改名 Fast.NET.Core |
| Fast.OpenApi | ✅ | 👁 nuget |
Fast.NET 框架 OpenApi 模块库 | |
| Fast.Runtime | ✅ | 👁 nuget |
Fast.NET 框架核心运行库 | |
| Fast.Serialization.Newtonsoft.Json | ✅ | 👁 nuget |
Fast.NET 框架 Newtonsoft.Json 序列化模块库 | 基于 Newtonsoft.Json 封装 |
| Fast.Serialization.System.Text.Json | ✅ | 👁 nuget |
Fast.NET 框架 System.Text.Json 序列化模块库 | 基于 System.Text.Json 封装 |
| Fast.SqlSugar | ✅ | 👁 nuget |
Fast.NET 框架 SqlSugar 模块库 | 基于 SqlSugar 封装 |
| Fast.Swagger | ✅ | 👁 nuget |
Fast.NET 框架 Swagger 模块库 | |
| Fast.UnifyResult | ✅ | 👁 nuget |
Fast.NET 框架 RESTful 风格统一返回模块库 |
状态说明
图标 描述 ⚠️ 待定 ⏳ 进行中 ✅ 完成 💔 随时抛弃
Fast.NET 遵循 Apache-2.0 开源协议,欢迎大家提交 PR 或 Issue。
Apache开源许可证
版权所有 © 2018-Now 小方
许可授权:
本协议授予任何获得本软件及其相关文档(以下简称“软件”)副本的个人或组织。
在遵守本协议条款的前提下,享有使用、复制、修改、合并、发布、分发、再许可、销售软件副本的权利:
1.所有软件副本或主要部分必须保留本版权声明及本许可协议。
2.软件的使用、复制、修改或分发不得违反适用法律或侵犯他人合法权益。
3.修改或衍生作品须明确标注原作者及原软件出处。
特别声明:
- 本软件按“原样”提供,不提供任何形式的明示或暗示的保证,包括但不限于对适销性、适用性和非侵权的保证。
- 在任何情况下,作者或版权持有人均不对因使用或无法使用本软件导致的任何直接或间接损失的责任。
- 包括但不限于数据丢失、业务中断等情况。
免责条款:
禁止利用本软件从事危害国家安全、扰乱社会秩序或侵犯他人合法权益等违法活动。
对于基于本软件二次开发所引发的任何法律纠纷及责任,作者不承担任何责任。
| 成员 | 技术 | 昵称 | 座右铭 |
|---|---|---|---|
| 小方 | 全栈 | 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 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.5.20 | 150 | 3/1/2026 |
| 3.5.19 | 141 | 1/18/2026 |
| 3.5.18 | 230 | 12/25/2025 |
| 3.5.17 | 199 | 12/21/2025 |
| 3.5.16 | 225 | 12/13/2025 |
| 3.5.15 | 167 | 12/13/2025 |
| 3.5.14 | 240 | 11/23/2025 |
| 3.5.13 | 458 | 11/18/2025 |
| 3.5.12 | 458 | 11/18/2025 |
| 3.5.11 | 337 | 11/11/2025 |
| 3.5.10 | 245 | 9/25/2025 |
| 3.5.9 | 229 | 9/21/2025 |
| 3.5.8 | 269 | 8/8/2025 |
| 3.5.7 | 220 | 7/11/2025 |
| 3.5.6 | 249 | 6/23/2025 |
| 3.5.5 | 216 | 6/21/2025 |
| 3.5.4 | 211 | 6/20/2025 |
| 3.5.3 | 258 | 6/3/2025 |
| 3.5.2 | 272 | 5/22/2025 |
| 3.5.1 | 234 | 5/21/2025 |