摘要: 安装webview2 不然报错找不到路径,运行时也安装下 阅读全文
posted @ 2023-09-12 17:16 孤海飞雁 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 依赖注入 先添加要注册的对象 如 AddTransient<IA,A>()到 ServiceCollection ;然后将添加的 对象 添加到到 容器里,这里根据 添加 对象的不同,如 .AddScoped<IB>(_ => new B()),AddSingleton<IC>(new C());等然 阅读全文
posted @ 2023-09-10 23:53 孤海飞雁 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 通过构造函数获取ISchedulerFactory private async void InitJob() { var _scheduler = await _schedulerFactory.GetScheduler(); _scheduler.JobFactory = new QuartzJo 阅读全文
posted @ 2023-09-10 17:10 孤海飞雁 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 监听System.Data.SqlClient 为例 通过观察者模式和 DiagnosticListener获取监听数据, 在开始InstrumentationHostedService实现IHostedService启动 然后通过 DiagnosticListener.AllListeners.S 阅读全文
posted @ 2023-09-03 15:38 孤海飞雁 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 官方下载地址 Downloads | Apache SkyWalking jdk 12.2 解压 找到 bin/startup目录 启动,不连接数据库,采用内存记录 webapp\application.yml 可以更改 web程序启动端口 config\application.yml 更改配置,具 阅读全文
posted @ 2023-08-30 21:47 孤海飞雁 阅读(64) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using SqlSugar; $blankline {{ var today=new Date(); var fullYear=today.getFullYear(); var month=today. 阅读全文
posted @ 2023-08-25 14:21 孤海飞雁 阅读(39) 评论(0) 推荐(0) 编辑
摘要: Microsoft.AspNetCore.Hosting.HttpRequestIn.Start Microsoft.AspNetCore.Hosting.BeginRequest Microsoft.AspNetCore.Routing.EndpointMatched 终结点匹配 Microsof 阅读全文
posted @ 2023-06-30 22:07 孤海飞雁 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 在部署到西藏职院 测试 流程时(Net6), 有个在线预览功能,pc 端可以,但是在微信端预览时就报错了,提示 ERR_BLOCKED_BY_RESPONSE,百度设置x-frame-options=sameorigih,还是有问题,链接有一个 http和一个https(问题就出在这里,微信端被强制 阅读全文
posted @ 2023-06-22 10:55 孤海飞雁 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1 new WebHostBuilder ,并传入 IHostBuilder 和 ApplicationBuilder 并初始化 , 执行委托 创建HttpListenerServer 服务,没有则返回默认 监听地址,注册中间件,获取监听地址, 遍历 生成管道 对象 requestDelegate 阅读全文
posted @ 2023-05-23 21:39 孤海飞雁 阅读(124) 评论(0) 推荐(0) 编辑
摘要: RedirectUris = { "https://localhost:7098/signin-oidc" }, PostLogoutRedirectUris = { "https://localhost:7098/signout-callback-oidc" },服务端添加这个 RequirePk 阅读全文
posted @ 2023-04-29 19:00 孤海飞雁 阅读(79) 评论(0) 推荐(0) 编辑