Connection If you don't want to expose the password, you can create your own AuthorizationHeader and use only the Base64 encoded Basic authentication[......] 继续阅读
Connection If you don't want to expose the password, you can create your own AuthorizationHeader and use only the Base64 encoded Basic authentication[......] 继续阅读
连接 如果不想对外暴露密码,可以自行写一个 AuthorizationHeader,只使用 Base64 处理后的 Basic 认证密钥。 using Elastic.Clients.Elasticsearch; using Elastic.Transport; public class Prog[......]继续阅读
A field is an array. If this record does not exist in the array, add a record to the array. FilterDefinitionBuilder<WorkflowDo> fd[......]继续阅读
1,一个字段是数组,如果数组中不存在这个记录时,向数组增加一个记录。 FilterDefinitionBuilder<WorkflowDo> fd = Builders<WorkflowDo>.Filter; var f = f[......]继续阅读
背景: I searched many libraries, but either they charged fees or were too outdated to be used. After extensive testing, I wrote the relevant code for th[......] 继续阅读
背景: 查找了很多库,要么收费,要么太旧用不了。 经过大量测试,写了打印机的相关代码。 实现的代码不依赖于第三方库。 核心代码 引入这两个库: System.Drawing.Printing Vanara.PInvoke.Printing 这两个库用于使用 winspool.drv 服务,可以避免编[......] 继续阅读
The code example is as follows: System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPoli[......]继续阅读
代码示例如下: System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;[......]继续阅读
首先在要被执行的 类型 加上参数: [Option(Description = "CloudEvents 'source' (default: urn:example-com:mysource:abc)", LongName = "source", ShortName = "s")][......]继续阅读
首先在要被执行的类型加上参数: [Option(Description = "CloudEvents 'source' (default: urn:example-com:mysource:abc)", LongName = "source",[......]继续阅读
引入这个库: YamlDotNet 配置示例: services.AddYamlDotNetSerializer( serializer => serializer .IncludeNonPubli[......]继续阅读
Introduce this library: YamlDotNet Configuration example: services.AddYamlDotNetSerializer( serializer => serializer[......]继续阅读
从 ServerlessWorkflow 中学习到一个有趣的 NewtonsoftJson 配置。 var newtonsoftJsonDefaultConfig = (JsonSerializerSettings settings) => {[......]继续阅读
From ServerlessWorkflow, I learned an interesting configuration for NewtonsoftJson. var newtonsoftJsonDefaultConfig = (JsonSerializerSetti[......]继续阅读
ISO8601 规定了时间格式。 在 Go 语言中,Duration 就实现了这种时间格式。 package main import ( "fmt" "time" ) func main() { t := time.Now() fmt.Println(t) } 输[......] 继续阅读
ISO 8601 specifies the time format. In Go language, Duration implements this time format. package main import ( "fmt" "time&q[......]继续阅读
背景 因为本地开发时,内网的 https 是不安全的 https。 会导致 js 发不出请求。 为了让 https 安全,这里实现了本地 localhost 自动生成证书以及安装的过程。 写代码 生成证书使用的是 .NET 自带的库,不需要引入第三方包。 using System.Security[......]继续阅读
Background During local development, the internal network's HTTPS is considered insecure. This can result in JS requests not being sent. To secure HT[......] 继续阅读
有以下 N 个因子: new List<string>{"A","B","C"}, // 位置 0 new List<string>{"1","2","3"}, // 位置 1 new List<str[......]继续阅读
有以下 N 个因子: new List<string>{"A","B","C"}, // Position 0 new List<string>{"1","[......]继续阅读