登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情
代码拉取完成,页面将自动刷新
开源项目
>
WEB应用开发
>
Web开发框架
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
9.9K
Star
14.5K
Fork
4.2K
GVP
dotNET China
/
Furion
代码
Issues
0
Pull Requests
0
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
📝 发布 Furion v4.8.4 版本
已完成
#I68573
百小僧
拥有者
创建于
2022-12-30 11:38
### 功能描述 发布 `Furion` 和 `Furion.Tools` 和 `Furion.Xunit` `v4.8.4` 版本 包含以下功能更新: ### 功能清单 - [x] [新增] **定时任务 `Dashboard` 看板** <sup>4.8.4</sup> <sup>⏱️2022.12.30</sup> [d3f9669](https://gitee.com/dotnetchina/Furion/commit/d3f966921dfa757c12c2bd071fb19fc166a2f24e) - [x] **[移除] 旧版本定时任务模块所有功能代码,请尽快迁移到新版本 [d9dc9e4](https://gitee.com/dotnetchina/Furion/commit/d9dc9e4f4b9e997e09e03647b6a0c30cad69d02b)** - [x] [新增] 视图引擎支持无命名空间的强类型 <sup>4.8.4.16</sup> <sup>⏱️2023.01.15</sup> [#I6ABN3](https://gitee.com/dotnetchina/Furion/issues/I6ABN3) [#I6A7SI](https://gitee.com/dotnetchina/Furion/issues/I6A7SI) [076bb17](https://gitee.com/dotnetchina/Furion/commit/076bb1781ab1a31b5b6a42a56910909b3528d25e) - [x] [新增] 视图引擎支持匿名类型模型带集合类型属性 `@foreach` 遍历 <sup>4.8.4.15</sup> <sup>⏱️2023.01.13</sup> [#I6A7SI](https://gitee.com/dotnetchina/Furion/issues/I6A7SI) - [x] [新增] `Swagger` 支持复制路由地址功能 <sup>4.8.4.13</sup> <sup>⏱️2023.01.11</sup> [#I5VNJI](https://gitee.com/dotnetchina/Furion/issues/I5VNJI) - [x] [新增] 动态 `WebAPI` 方法支持通过 `[ActionName(名称)]` 和 `[HttpMethod(Name=名称)]` 指定路由名称 <sup>4.8.4.12</sup> <sup>⏱️2023.01.10</sup> [#I69AOJ](https://gitee.com/dotnetchina/Furion/issues/I69AOJ) [f699540](https://gitee.com/dotnetchina/Furion/commit/f699540989e688f25597c509249e024ec014dc4e) - [x] [新增] `BadPageResult.Status401Unauthorized` 等常见状态码 `401,403,404,500` 静态属性 <sup>4.8.4.11</sup> <sup>⏱️2023.01.09</sup> [#I69KQF](https://gitee.com/dotnetchina/Furion/issues/I69KQF) - [x] [新增] `crontab.GetSleepTimeSpan(baseTime)` 实例方法 <sup>4.8.4.10</sup> <sup>⏱️2023.01.09</sup> [#I69HM4](https://gitee.com/dotnetchina/Furion/issues/I69HM4) - [x] [新增] `Enqueue/EnqueueAsync` 支持 `Cron` 表达式 实例重载方法 <sup>4.8.4.10</sup> <sup>⏱️2023.01.09</sup> [#I69HM4](https://gitee.com/dotnetchina/Furion/issues/I69HM4) - [x] [新增] `*.bcmap` 和 `.properties` 文件类型 `MIME` 支持 <sup>4.8.4.9</sup> <sup>⏱️2023.01.06</sup> [!694](https://gitee.com/dotnetchina/Furion/pulls/694) - [x] [新增] 定时任务 `Dashboard` 查看作业触发器最近运行记录功能 <sup>4.8.4.3</sup> <sup>⏱️2023.01.03</sup> [e7d24d8](https://gitee.com/dotnetchina/Furion/commit/e7d24d84bcc448b0a13f8e0b76328669261af44b) - [x] [新增] 定时任务作业触发器 `trigger.GetTimelines()` 获取最近 `10` 条运行记录列表 <sup>4.8.4.3</sup> <sup>⏱️2023.01.03</sup> [e7d24d8](https://gitee.com/dotnetchina/Furion/commit/e7d24d84bcc448b0a13f8e0b76328669261af44b) - [x] [新增] 定时任务 `IScheduler.GetEnumerable()` 方法,可将作业计划转换成可枚举字典 <sup>4.8.4</sup> <sup>⏱️2022.12.30</sup> [4d5235c](https://gitee.com/dotnetchina/Furion/commit/4d5235c37a9ef5e66e92847e65ef9786bcd7387c) - [x] [修复] 定时任务 `StartAll` 出现个别作业显示 `无触发时间` 的状态 <sup>4.8.4.14</sup> <sup>⏱️2023.01.12</sup> [#I6A08X](https://gitee.com/dotnetchina/Furion/issues/I6A08X) - [x] [修复] 动态 `WebAPI` 配置 `[Consumes]` 特性后 `Swagger` 不显示问题 <sup>4.8.4.12</sup> <sup>⏱️2023.01.10</sup> [daf25f8](https://gitee.com/dotnetchina/Furion/commit/daf25f8c91a24904381d3536c0c8825ef833e9c9) - [x] [修复] 定时任务停止作业触发器后运行记录不能写入最新记录问题 <sup>4.8.4.8</sup> <sup>⏱️2023.01.05</sup> [d4c553f](https://gitee.com/dotnetchina/Furion/commit/d4c553fb9b0037ab29942ccc2a25a386fc28c1db) - [x] [修复] 数据库日志注册在一些特殊情况下丢失日志上下文问题 <sup>4.8.4.6</sup> <sup>⏱️2023.01.04</sup> [#I68PDF](https://gitee.com/dotnetchina/Furion/issues/I68PDF) - [x] [修复] 远程请求配置 `WithEncodeUrl(false)` 对 `application/x-www-form-urlencoded` 请求类型无效 <sup>4.8.4</sup> <sup>⏱️2022.12.30</sup> [#I682DX](https://gitee.com/dotnetchina/Furion/issues/I682DX) - [x] [修复] 在类中贴 `[SuppressMonitor]` 特性但 `LoggingMonitor` 依然输出问题 <sup>4.8.4</sup> <sup>⏱️2022.12.30</sup> [#I6882I](https://gitee.com/dotnetchina/Furion/issues/I6882I) - [x] [修复] 定时任务使用 `Furion.Pure` 包访问 `Dashboard` 出现 `404` 问题 <sup>4.8.4.2</sup> <sup>⏱️2023.01.02</sup> [21977b7](https://gitee.com/dotnetchina/Furion/commit/21977b70ef84fd674bb306ab86ef032f7f28c7a7) - [x] [优化] 任务队列同步调用代码 [79884ff](https://gitee.com/dotnetchina/Furion/commit/79884fffe8b2d5f8674733d14a7cdf3298ac328c) - [x] [升级] `SqlSugarCore` 拓展包及脚手架至 `v5.1.3.45` 版本 - [x] [发布] `v4.8.4` 版本文档 - [x] [更新] 示例项目 `samples` 依赖至 `v4.8.4` 版本 - [x] [同步] [Replit](https://replit.com/@MonkSoul/HelloFurion) 网站 `Furion` 案例至 `v4.8.4` 版本 - [x] [发布] `Gitee` 和 `Github` `Release-v4.8.4` 版本 - [x] [同步] 更新日志 ### 代码实现 [https://gitee.com/dotnetchina/Furion/commit/d9dc9e4f4b9e997e09e03647b6a0c30cad69d02b](https://gitee.com/dotnetchina/Furion/commit/d9dc9e4f4b9e997e09e03647b6a0c30cad69d02b) [https://gitee.com/dotnetchina/Furion/commit/adebfd64af842d7ed0a6728ccfbfd312ba7ae8af](https://gitee.com/dotnetchina/Furion/commit/adebfd64af842d7ed0a6728ccfbfd312ba7ae8af) [https://gitee.com/dotnetchina/Furion/commit/4d5235c37a9ef5e66e92847e65ef9786bcd7387c](https://gitee.com/dotnetchina/Furion/commit/4d5235c37a9ef5e66e92847e65ef9786bcd7387c) [https://gitee.com/dotnetchina/Furion/commit/c87f23d70f1eb64eac58fbce2d8a997d269179dc](https://gitee.com/dotnetchina/Furion/commit/c87f23d70f1eb64eac58fbce2d8a997d269179dc) [https://gitee.com/dotnetchina/Furion/commit/79884fffe8b2d5f8674733d14a7cdf3298ac328c](https://gitee.com/dotnetchina/Furion/commit/79884fffe8b2d5f8674733d14a7cdf3298ac328c) ### 文档更新 **1. 新增定时任务 `Dashboard` 看板功能** 在 `Furion 4.8.4+` 版本内置了一个嵌入的定时任务看板功能,只需要在 `Startup.cs` 中启用即可,如: ```cs showLineNumbers {2} app.UseStaticFiles(); app.UseScheduleUI(); // 还可以配置生产环境关闭 app.UseScheduleUI(options => { options.DisableOnProduction = true; }); ``` `app.UseScheduleUI()` 必须在 `app.UseStaticFiles()` 之后注册,**且当前版本暂未提供任何自定义功能。** 接着打开浏览器并访问 `/schedule` 地址即可:  **注意:当前 `Furion 4.8.4+` 版本暂未提供任何自定义功能,包括 `/schedule` 地址配置。** ----- **2. 定时任务作业计划可转换成可枚举字典** 通常我们在开发应用时,需要将作业计划信息进行拆解,比如一个作业计划包含两个作业触发器,那么可以通过 `scheduler.GetEnumerable()` 方法生成可枚举字典对象,字典中的项数量等于作业触发器数量。 ```cs showLineNumbers {1} foreach (var (jobDetail, trigger) in scheduler.GetEnumerable()) { // .... } ``` ----- **3. 添加 `InjectOptions` 配置文档** `.Inject()` 方法提供了一个可配置的选项 `InjectOptions`,可以通过该配置配置框架初始化的一些配置,如: ```cs showLineNumbers {1} .Inject((builder, options) => { options.AssemblyName = "Furion"; // 配置外部程序集名称 options.AutoRegisterBackgroundService = true; // 是否自动注册 BackgroundService options.ConfigurationScanDirectories("目录1", "目录2", ...); // 配置配置文件扫描目录 options.IgnoreConfigurationFiles("文件1", "文件2", ...); // 配置忽略配置文件 // 配置配置对象 options.ConfigureAppConfiguration((context, config) => { }); // 配置配置对象(Web) options.ConfigureWebAppConfiguration((context, config) => { }); // 配置 ConfigureServices options.ConfigureServices((context, services) => { }); // 配置 ConfigureServices(Web) options.ConfigureWebServices((context, services) => { }); }); ``` ----- **4. 获取内存中作业触发器最近运行的 `10` 条记录** ```cs showLineNumbers var timelines = trigger.GetTimelines(); // => [{numberOfRuns: 2, lastRunTime: "2023-01-03 14:00:08"}, {numberOfRuns: 1, lastRunTime: "2023-01-03 14:00:03"}, ...] ```
### 功能描述 发布 `Furion` 和 `Furion.Tools` 和 `Furion.Xunit` `v4.8.4` 版本 包含以下功能更新: ### 功能清单 - [x] [新增] **定时任务 `Dashboard` 看板** <sup>4.8.4</sup> <sup>⏱️2022.12.30</sup> [d3f9669](https://gitee.com/dotnetchina/Furion/commit/d3f966921dfa757c12c2bd071fb19fc166a2f24e) - [x] **[移除] 旧版本定时任务模块所有功能代码,请尽快迁移到新版本 [d9dc9e4](https://gitee.com/dotnetchina/Furion/commit/d9dc9e4f4b9e997e09e03647b6a0c30cad69d02b)** - [x] [新增] 视图引擎支持无命名空间的强类型 <sup>4.8.4.16</sup> <sup>⏱️2023.01.15</sup> [#I6ABN3](https://gitee.com/dotnetchina/Furion/issues/I6ABN3) [#I6A7SI](https://gitee.com/dotnetchina/Furion/issues/I6A7SI) [076bb17](https://gitee.com/dotnetchina/Furion/commit/076bb1781ab1a31b5b6a42a56910909b3528d25e) - [x] [新增] 视图引擎支持匿名类型模型带集合类型属性 `@foreach` 遍历 <sup>4.8.4.15</sup> <sup>⏱️2023.01.13</sup> [#I6A7SI](https://gitee.com/dotnetchina/Furion/issues/I6A7SI) - [x] [新增] `Swagger` 支持复制路由地址功能 <sup>4.8.4.13</sup> <sup>⏱️2023.01.11</sup> [#I5VNJI](https://gitee.com/dotnetchina/Furion/issues/I5VNJI) - [x] [新增] 动态 `WebAPI` 方法支持通过 `[ActionName(名称)]` 和 `[HttpMethod(Name=名称)]` 指定路由名称 <sup>4.8.4.12</sup> <sup>⏱️2023.01.10</sup> [#I69AOJ](https://gitee.com/dotnetchina/Furion/issues/I69AOJ) [f699540](https://gitee.com/dotnetchina/Furion/commit/f699540989e688f25597c509249e024ec014dc4e) - [x] [新增] `BadPageResult.Status401Unauthorized` 等常见状态码 `401,403,404,500` 静态属性 <sup>4.8.4.11</sup> <sup>⏱️2023.01.09</sup> [#I69KQF](https://gitee.com/dotnetchina/Furion/issues/I69KQF) - [x] [新增] `crontab.GetSleepTimeSpan(baseTime)` 实例方法 <sup>4.8.4.10</sup> <sup>⏱️2023.01.09</sup> [#I69HM4](https://gitee.com/dotnetchina/Furion/issues/I69HM4) - [x] [新增] `Enqueue/EnqueueAsync` 支持 `Cron` 表达式 实例重载方法 <sup>4.8.4.10</sup> <sup>⏱️2023.01.09</sup> [#I69HM4](https://gitee.com/dotnetchina/Furion/issues/I69HM4) - [x] [新增] `*.bcmap` 和 `.properties` 文件类型 `MIME` 支持 <sup>4.8.4.9</sup> <sup>⏱️2023.01.06</sup> [!694](https://gitee.com/dotnetchina/Furion/pulls/694) - [x] [新增] 定时任务 `Dashboard` 查看作业触发器最近运行记录功能 <sup>4.8.4.3</sup> <sup>⏱️2023.01.03</sup> [e7d24d8](https://gitee.com/dotnetchina/Furion/commit/e7d24d84bcc448b0a13f8e0b76328669261af44b) - [x] [新增] 定时任务作业触发器 `trigger.GetTimelines()` 获取最近 `10` 条运行记录列表 <sup>4.8.4.3</sup> <sup>⏱️2023.01.03</sup> [e7d24d8](https://gitee.com/dotnetchina/Furion/commit/e7d24d84bcc448b0a13f8e0b76328669261af44b) - [x] [新增] 定时任务 `IScheduler.GetEnumerable()` 方法,可将作业计划转换成可枚举字典 <sup>4.8.4</sup> <sup>⏱️2022.12.30</sup> [4d5235c](https://gitee.com/dotnetchina/Furion/commit/4d5235c37a9ef5e66e92847e65ef9786bcd7387c) - [x] [修复] 定时任务 `StartAll` 出现个别作业显示 `无触发时间` 的状态 <sup>4.8.4.14</sup> <sup>⏱️2023.01.12</sup> [#I6A08X](https://gitee.com/dotnetchina/Furion/issues/I6A08X) - [x] [修复] 动态 `WebAPI` 配置 `[Consumes]` 特性后 `Swagger` 不显示问题 <sup>4.8.4.12</sup> <sup>⏱️2023.01.10</sup> [daf25f8](https://gitee.com/dotnetchina/Furion/commit/daf25f8c91a24904381d3536c0c8825ef833e9c9) - [x] [修复] 定时任务停止作业触发器后运行记录不能写入最新记录问题 <sup>4.8.4.8</sup> <sup>⏱️2023.01.05</sup> [d4c553f](https://gitee.com/dotnetchina/Furion/commit/d4c553fb9b0037ab29942ccc2a25a386fc28c1db) - [x] [修复] 数据库日志注册在一些特殊情况下丢失日志上下文问题 <sup>4.8.4.6</sup> <sup>⏱️2023.01.04</sup> [#I68PDF](https://gitee.com/dotnetchina/Furion/issues/I68PDF) - [x] [修复] 远程请求配置 `WithEncodeUrl(false)` 对 `application/x-www-form-urlencoded` 请求类型无效 <sup>4.8.4</sup> <sup>⏱️2022.12.30</sup> [#I682DX](https://gitee.com/dotnetchina/Furion/issues/I682DX) - [x] [修复] 在类中贴 `[SuppressMonitor]` 特性但 `LoggingMonitor` 依然输出问题 <sup>4.8.4</sup> <sup>⏱️2022.12.30</sup> [#I6882I](https://gitee.com/dotnetchina/Furion/issues/I6882I) - [x] [修复] 定时任务使用 `Furion.Pure` 包访问 `Dashboard` 出现 `404` 问题 <sup>4.8.4.2</sup> <sup>⏱️2023.01.02</sup> [21977b7](https://gitee.com/dotnetchina/Furion/commit/21977b70ef84fd674bb306ab86ef032f7f28c7a7) - [x] [优化] 任务队列同步调用代码 [79884ff](https://gitee.com/dotnetchina/Furion/commit/79884fffe8b2d5f8674733d14a7cdf3298ac328c) - [x] [升级] `SqlSugarCore` 拓展包及脚手架至 `v5.1.3.45` 版本 - [x] [发布] `v4.8.4` 版本文档 - [x] [更新] 示例项目 `samples` 依赖至 `v4.8.4` 版本 - [x] [同步] [Replit](https://replit.com/@MonkSoul/HelloFurion) 网站 `Furion` 案例至 `v4.8.4` 版本 - [x] [发布] `Gitee` 和 `Github` `Release-v4.8.4` 版本 - [x] [同步] 更新日志 ### 代码实现 [https://gitee.com/dotnetchina/Furion/commit/d9dc9e4f4b9e997e09e03647b6a0c30cad69d02b](https://gitee.com/dotnetchina/Furion/commit/d9dc9e4f4b9e997e09e03647b6a0c30cad69d02b) [https://gitee.com/dotnetchina/Furion/commit/adebfd64af842d7ed0a6728ccfbfd312ba7ae8af](https://gitee.com/dotnetchina/Furion/commit/adebfd64af842d7ed0a6728ccfbfd312ba7ae8af) [https://gitee.com/dotnetchina/Furion/commit/4d5235c37a9ef5e66e92847e65ef9786bcd7387c](https://gitee.com/dotnetchina/Furion/commit/4d5235c37a9ef5e66e92847e65ef9786bcd7387c) [https://gitee.com/dotnetchina/Furion/commit/c87f23d70f1eb64eac58fbce2d8a997d269179dc](https://gitee.com/dotnetchina/Furion/commit/c87f23d70f1eb64eac58fbce2d8a997d269179dc) [https://gitee.com/dotnetchina/Furion/commit/79884fffe8b2d5f8674733d14a7cdf3298ac328c](https://gitee.com/dotnetchina/Furion/commit/79884fffe8b2d5f8674733d14a7cdf3298ac328c) ### 文档更新 **1. 新增定时任务 `Dashboard` 看板功能** 在 `Furion 4.8.4+` 版本内置了一个嵌入的定时任务看板功能,只需要在 `Startup.cs` 中启用即可,如: ```cs showLineNumbers {2} app.UseStaticFiles(); app.UseScheduleUI(); // 还可以配置生产环境关闭 app.UseScheduleUI(options => { options.DisableOnProduction = true; }); ``` `app.UseScheduleUI()` 必须在 `app.UseStaticFiles()` 之后注册,**且当前版本暂未提供任何自定义功能。** 接着打开浏览器并访问 `/schedule` 地址即可:  **注意:当前 `Furion 4.8.4+` 版本暂未提供任何自定义功能,包括 `/schedule` 地址配置。** ----- **2. 定时任务作业计划可转换成可枚举字典** 通常我们在开发应用时,需要将作业计划信息进行拆解,比如一个作业计划包含两个作业触发器,那么可以通过 `scheduler.GetEnumerable()` 方法生成可枚举字典对象,字典中的项数量等于作业触发器数量。 ```cs showLineNumbers {1} foreach (var (jobDetail, trigger) in scheduler.GetEnumerable()) { // .... } ``` ----- **3. 添加 `InjectOptions` 配置文档** `.Inject()` 方法提供了一个可配置的选项 `InjectOptions`,可以通过该配置配置框架初始化的一些配置,如: ```cs showLineNumbers {1} .Inject((builder, options) => { options.AssemblyName = "Furion"; // 配置外部程序集名称 options.AutoRegisterBackgroundService = true; // 是否自动注册 BackgroundService options.ConfigurationScanDirectories("目录1", "目录2", ...); // 配置配置文件扫描目录 options.IgnoreConfigurationFiles("文件1", "文件2", ...); // 配置忽略配置文件 // 配置配置对象 options.ConfigureAppConfiguration((context, config) => { }); // 配置配置对象(Web) options.ConfigureWebAppConfiguration((context, config) => { }); // 配置 ConfigureServices options.ConfigureServices((context, services) => { }); // 配置 ConfigureServices(Web) options.ConfigureWebServices((context, services) => { }); }); ``` ----- **4. 获取内存中作业触发器最近运行的 `10` 条记录** ```cs showLineNumbers var timelines = trigger.GetTimelines(); // => [{numberOfRuns: 2, lastRunTime: "2023-01-03 14:00:08"}, {numberOfRuns: 1, lastRunTime: "2023-01-03 14:00:03"}, ...] ```
评论 (
34
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已关闭
负责人
未设置
百小僧
monksoul
负责人
协作者
+负责人
+协作者
标签
新功能
漏洞
疑问
未设置
标签管理
里程碑
v4.8.4
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(10)
C#
1
https://gitee.com/dotnetchina/Furion.git
git@gitee.com:dotnetchina/Furion.git
dotnetchina
Furion
Furion
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册