Default WebView2 will be installed in the system directory, which may lead to insufficient permissions when the program starts, preventing the use of[......] 继续阅读

2023年9月14日 0条评论 110点热度 0人点赞 痴者工良 阅读全文

默认 Webview2 会被安装到系统目录,可能会导致程序启动时权限不足,无法使用 Webview2,以及多版本程序之间发生存储目录冲突。 因此需要自定义设置 Webview2 目录,最好就存储在程序安装目录下。 首先修改 App.xaml 文件,添加一行: <Application.[......]继续阅读

2023年9月14日 0条评论 2669点热度 0人点赞 痴者工良 阅读全文

部署 Apollo 之后,创建一个应用。 然后创建命名空间,选择 private 创建私有命名空间,选择 json 格式。 点击修改文本,填入 json 内容。 然后在 .NET 程序中引入包 <PackageReference Include="Com.Ctrip.F[......]继续阅读

2023年9月11日 0条评论 1772点热度 0人点赞 痴者工良 阅读全文

Deploy Apollo and create an application. Then create a namespace, select private to create a private namespace, and choose the json format. Click mo[......] 继续阅读

2023年9月11日 0条评论 102点热度 0人点赞 痴者工良 阅读全文

首先是中间件,它决定了有时间显示哪些分组。 可以从 IApiDescriptionGroupCollectionProvider 服务中获取所有 API,然后通过 API 进行识别,检查是否有分组。 if (context.HostingEnvironment.I[......]继续阅读

2023年8月15日 0条评论 2408点热度 2人点赞 痴者工良 阅读全文

First is the middleware, which determines which groups to display when there is time. All APIs can be obtained from the IApiDescriptionGroupCollectio[......] 继续阅读

2023年8月15日 0条评论 110点热度 2人点赞 痴者工良 阅读全文

在 signalR 中如需获取客户端的连接信息,可以使用 IHttpConnectionFeature 获取客户端通讯的 IP 和端口。 // 获取服务 var feature = Context.Features.Get<IHttpConnec[......]继续阅读

2023年8月4日 0条评论 1971点热度 0人点赞 痴者工良 阅读全文

In SignalR, to obtain the client's connection information, you can use IHttpConnectionFeature to retrieve the client's communication IP and port. [......]继续阅读

2023年8月4日 0条评论 102点热度 0人点赞 痴者工良 阅读全文

在 ABP 中,默认只有本地 JSON 语言处理,但是在业务上我们可能有好多定制需求。本文介绍如何自己根据 redis 实现一个多语言处理,通过 redis 取得语言信息。 ABP 官方文档:https://docs.abp.io/en/abp/latest/Localization ABP 是这样[......] 继续阅读

2023年7月27日 0条评论 2634点热度 1人点赞 痴者工良 阅读全文

In ABP, by default, only local JSON language handling is available. However, for business purposes, we may have many customization needs. This article[......] 继续阅读

2023年7月27日 0条评论 98点热度 1人点赞 痴者工良 阅读全文

在 .csproj 中使用了中文,导致 Jenkins CICD 的时候报错。 Microsoft.WinFX.targets(439,8): error : Invalid character in the given encoding. 原因在于 MSBuild 或者 dotnet publis[......] 继续阅读

2023年7月24日 0条评论 1943点热度 0人点赞 痴者工良 阅读全文

Using Chinese characters in .csproj can cause errors during Jenkins CICD. Microsoft.WinFX.targets(439,8): error : Invalid character in the given encod[......]继续阅读

2023年7月24日 0条评论 100点热度 0人点赞 痴者工良 阅读全文

PdfSharp 是一个 .NET 跨平台的 PDF 处理框架,PdfSharp 使用的是 MIT 开源协议,无论是个人还是商业使用均可,且不限制闭源或开源。PdfSharp 由社区维护,无任何收费购买项目。 笔者看中它: 体积轻小, 操作简单, 跨平台,不会出现 System.Drawing 报[......] 继续阅读

2023年7月20日 0条评论 3482点热度 1人点赞 痴者工良 阅读全文

PdfSharp is a .NET cross-platform PDF processing framework that uses the MIT open-source license, allowing both personal and commercial use without re[......] 继续阅读

2023年7月20日 0条评论 110点热度 1人点赞 痴者工良 阅读全文

最近使用了一个 TinyMapper 对象映射框架,喜欢它的简单。 TinyMapper 文档地址: http://tinymapper.net/ TinyMapper 极其简单,一个静态类即可: TinyMapper.Bind<Person, PersonDto>(); var p[......]继续阅读

2023年7月19日 0条评论 1886点热度 2人点赞 痴者工良 阅读全文

Recently, I used a TinyMapper object mapping framework, and I like its simplicity. TinyMapper documentation link: http://tinymapper.net/ TinyMapper is[......] 继续阅读

2023年7月19日 0条评论 140点热度 2人点赞 痴者工良 阅读全文

Jq is a lightweight and flexible command-line JSON processor. Official website: https://jqlang.github.io/jq/ https://jqlang.github.io/jq/manual/ Jq ca[......] 继续阅读

2023年6月6日 2条评论 122点热度 1人点赞 痴者工良 阅读全文

Jq 是一个轻量级和灵活的命令行 JSON 处理器。 官网: https://jqlang.github.io/jq/ https://jqlang.github.io/jq/manual/ Jq 可以从 JSON 中解析数据以及将数据替换到字段表达式生成新的 Json。 例如一个 JSON: [......]继续阅读

2023年6月6日 2条评论 2695点热度 1人点赞 痴者工良 阅读全文

基础知识 C# 中又对称加密和非对称加密,其中 RSA 是最常用的非对称加密。 由于 C# 中的加密库,在不同 .NET 版本中改动比较大,因此这里按 .NET 7 以后的版本来说。 首先 RSA 有以下继承关系: Object -> AsymmetricAlgorithm -> RSA[......]继续阅读

2023年4月25日 0条评论 2460点热度 0人点赞 痴者工良 阅读全文

Basic Knowledge In C#, there are symmetric and asymmetric encryption methods, among which RSA is the most commonly used asymmetric encryption. Due to[......] 继续阅读

2023年4月25日 0条评论 122点热度 0人点赞 痴者工良 阅读全文
13456718