Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Web Development
>
Web Framework
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
9.9K
Star
14.5K
Fork
4.2K
GVP
dotNET China
/
Furion
Code
Issues
0
Pull Requests
0
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
请帮看下使用第三方微信服务后,导致日志上下文为null的问题
Done
#I68PDF
忽悠我
Opened this issue
2023-01-04 12:59
 ## 💢 特别说明:如果 Issue 没有严格按照模板编写且未提供测试源码下载或 Git 测试仓库地址,则视为无效 `Issue`,将无法得到答复。 ### Furion 版本号 哪个版本号? v4.8.2.9 --- ### .NET SDK 版本号 - [ ] .NET5 - [x] .NET6 - [ ] .NET7 --- ### 项目类型 - [x] WebApi - [ ] Mvc - [ ] Razor Pages - [ ] Blazor Server - [ ] MinApp - [ ] WinForm - [ ] WPF - [ ] Console --- ### 操作系统和版本 - [x] Windows(版本号?) - [ ] Linux(版本号?) - [ ] MacOS(版本号?) - [ ] 其他(版本号?) --- ### 代码环境 - [x] 开发环境(Development) - [ ] 生产环境(Production) - [ ] 测试环境(Tests/单元测试/集成测试 ) --- ### 描述你的问题 发生了什么? 在注册微信服务之前,日志上下文一切正常,但使用后不知道为啥会导致上下文失效,麻烦排查下问题所在。 --- ### 异常堆栈信息 异常堆栈是什么?   --- ### 测试项目代码 ``` Serve.Run(RunOptions.Default.ConfigureBuilder(builder => { //添加微信配置,使用本地缓存必须添加 builder.Services.AddMemoryCache(); //Senparc.Weixin 注册(必须) builder.Services.AddSenparcWeixinServices(builder.Configuration); }).Configure(app => { var senparcWeixinSetting = app.Services.GetService<IOptions<SenparcWeixinSetting>>()!.Value; //var registerService = app.UseSenparcWeixin(app.Environment, // null /* 不为 null 则覆盖 appsettings 中的 SenpacSetting 配置*/, // null /* 不为 null 则覆盖 appsettings 中的 SenpacWeixinSetting 配置*/, // register => { }, (register, weixinSetting) => // { // //注册小程序 // //register.RegisterWxOpenAccount(weixinSetting, "小程序"); // }); })); ``` > **⚠⚠ 必须提供完整可运行且包含错误的 `Git` 仓库 DEMO,DEMO 提供最简单的错误逻辑代码,否则将无法得到答复。⚠⚠** 您的代码下载地址? http://1.14.156.253:8083/Log.zip --- ### 数据库信息和版本 请提供安装的 `Nuget` 包版本号。 - [x] Sqlite(包名和版本号?) - [ ] SqlServer(包名和版本号?) - [ ] MySQL(包名和版本号?) - [ ] Oracle(包名和版本号?) - [ ] PostgreSQL(包名和版本号?) - [ ] Firebird(包名和版本号?) - [ ] Cosmos(包名和版本号?) - [ ] InMemoryDatabase(包名和版本号?) - [ ] 无 --- ### 期待结果 期待的结果是? 排查下问题原因 --- ### 确认工单 **为了减少不必要的沟通成本和时间成本,请再次确认 `Issue` 已按照要求正确填写,否则将被直接关闭。**
 ## 💢 特别说明:如果 Issue 没有严格按照模板编写且未提供测试源码下载或 Git 测试仓库地址,则视为无效 `Issue`,将无法得到答复。 ### Furion 版本号 哪个版本号? v4.8.2.9 --- ### .NET SDK 版本号 - [ ] .NET5 - [x] .NET6 - [ ] .NET7 --- ### 项目类型 - [x] WebApi - [ ] Mvc - [ ] Razor Pages - [ ] Blazor Server - [ ] MinApp - [ ] WinForm - [ ] WPF - [ ] Console --- ### 操作系统和版本 - [x] Windows(版本号?) - [ ] Linux(版本号?) - [ ] MacOS(版本号?) - [ ] 其他(版本号?) --- ### 代码环境 - [x] 开发环境(Development) - [ ] 生产环境(Production) - [ ] 测试环境(Tests/单元测试/集成测试 ) --- ### 描述你的问题 发生了什么? 在注册微信服务之前,日志上下文一切正常,但使用后不知道为啥会导致上下文失效,麻烦排查下问题所在。 --- ### 异常堆栈信息 异常堆栈是什么?   --- ### 测试项目代码 ``` Serve.Run(RunOptions.Default.ConfigureBuilder(builder => { //添加微信配置,使用本地缓存必须添加 builder.Services.AddMemoryCache(); //Senparc.Weixin 注册(必须) builder.Services.AddSenparcWeixinServices(builder.Configuration); }).Configure(app => { var senparcWeixinSetting = app.Services.GetService<IOptions<SenparcWeixinSetting>>()!.Value; //var registerService = app.UseSenparcWeixin(app.Environment, // null /* 不为 null 则覆盖 appsettings 中的 SenpacSetting 配置*/, // null /* 不为 null 则覆盖 appsettings 中的 SenpacWeixinSetting 配置*/, // register => { }, (register, weixinSetting) => // { // //注册小程序 // //register.RegisterWxOpenAccount(weixinSetting, "小程序"); // }); })); ``` > **⚠⚠ 必须提供完整可运行且包含错误的 `Git` 仓库 DEMO,DEMO 提供最简单的错误逻辑代码,否则将无法得到答复。⚠⚠** 您的代码下载地址? http://1.14.156.253:8083/Log.zip --- ### 数据库信息和版本 请提供安装的 `Nuget` 包版本号。 - [x] Sqlite(包名和版本号?) - [ ] SqlServer(包名和版本号?) - [ ] MySQL(包名和版本号?) - [ ] Oracle(包名和版本号?) - [ ] PostgreSQL(包名和版本号?) - [ ] Firebird(包名和版本号?) - [ ] Cosmos(包名和版本号?) - [ ] InMemoryDatabase(包名和版本号?) - [ ] 无 --- ### 期待结果 期待的结果是? 排查下问题原因 --- ### 确认工单 **为了减少不必要的沟通成本和时间成本,请再次确认 `Issue` 已按照要求正确填写,否则将被直接关闭。**
Comments (
5
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(3)
C#
1
https://gitee.com/dotnetchina/Furion.git
git@gitee.com:dotnetchina/Furion.git
dotnetchina
Furion
Furion
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register