连接 如果不想对外暴露密码,可以自行写一个 AuthorizationHeader,只使用 Base64 处理后的 Basic 认证密钥。 using Elastic.Clients.Elasticsearch; using Elastic.Transport; public class Prog[......]继续阅读

2022年12月29日 0条评论 3199点热度 0人点赞 痴者工良 阅读全文

Connection If you don't want to expose the password, you can create your own AuthorizationHeader and use only the Base64 encoded Basic authentication[......] 继续阅读

2022年12月29日 0条评论 332点热度 0人点赞 痴者工良 阅读全文

1,一个字段是数组,如果数组中不存在这个记录时,向数组增加一个记录。 FilterDefinitionBuilder<WorkflowDo> fd = Builders<WorkflowDo>.Filter; var f = f[......]继续阅读

2022年12月7日 0条评论 2890点热度 28人点赞 痴者工良 阅读全文

A field is an array. If this record does not exist in the array, add a record to the array. FilterDefinitionBuilder<WorkflowDo> fd[......]继续阅读

2022年12月7日 0条评论 2948点热度 28人点赞 痴者工良 阅读全文

背景: 查找了很多库,要么收费,要么太旧用不了。 经过大量测试,写了打印机的相关代码。 实现的代码不依赖于第三方库。 核心代码 引入这两个库: System.Drawing.Printing Vanara.PInvoke.Printing 这两个库用于使用 winspool.drv 服务,可以避免编[......] 继续阅读

2022年12月3日 0条评论 5259点热度 4人点赞 痴者工良 阅读全文

背景: 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[......] 继续阅读

2022年12月3日 0条评论 266点热度 4人点赞 痴者工良 阅读全文

WorkflowDefinitionValidator is the main entry point for validation, which has a very complex object structure. Reference: https://github.com/serverles[......] 继续阅读

2022年11月24日 0条评论 240点热度 0人点赞 痴者工良 阅读全文

WorkflowDefinitionValidator 是整个验证入口,上一个非常复杂的对象结构。 参考:https://github.com/serverlessworkflow/specification/blob/main/specification.md 通过依赖注入,继续检查下一层的字段。[......] 继续阅读

2022年11月24日 0条评论 2376点热度 0人点赞 痴者工良 阅读全文

The code example is as follows: System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPoli[......]继续阅读

2022年11月22日 0条评论 236点热度 0人点赞 痴者工良 阅读全文

代码示例如下: System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;[......]继续阅读

2022年11月22日 0条评论 2715点热度 0人点赞 痴者工良 阅读全文

首先在要被执行的类型加上参数: [Option(Description = "CloudEvents 'source' (default: urn:example-com:mysource:abc)", LongName = "source",[......]继续阅读

2022年11月19日 0条评论 298点热度 0人点赞 痴者工良 阅读全文

首先在要被执行的 类型 加上参数: [Option(Description = "CloudEvents 'source' (default: urn:example-com:mysource:abc)", LongName = "source", ShortName = "s")][......]继续阅读

2022年11月19日 0条评论 2715点热度 0人点赞 痴者工良 阅读全文

Introduce this library: YamlDotNet Configuration example: services.AddYamlDotNetSerializer( serializer => serializer[......]继续阅读

2022年11月19日 0条评论 5992点热度 0人点赞 痴者工良 阅读全文

引入这个库: YamlDotNet 配置示例: services.AddYamlDotNetSerializer( serializer => serializer .IncludeNonPubli[......]继续阅读

2022年11月19日 0条评论 2902点热度 0人点赞 痴者工良 阅读全文

ISO 8601 specifies the time format. In Go language, Duration implements this time format. package main import ( "fmt" "time&q[......]继续阅读

2022年11月19日 0条评论 3648点热度 0人点赞 痴者工良 阅读全文

ISO8601 规定了时间格式。 在 Go 语言中,Duration 就实现了这种时间格式。 package main import ( "fmt" "time" ) func main() { t := time.Now() fmt.Println(t) } 输[......] 继续阅读

2022年11月19日 0条评论 3663点热度 0人点赞 痴者工良 阅读全文

Background I suddenly learned about a project called ServerlessWorkflow. https://github.com/serverlessworkflow The specific utility of this project[......] 继续阅读

2022年11月19日 0条评论 312点热度 1人点赞 痴者工良 阅读全文

背景 突然了解到有个项目叫 ServerlessWorkflow 。 https://github.com/serverlessworkflow 这个项目有什么用,并不重要,重要的是可以从这里了解到云原生中间件开发的一些现状和需要学习的知识。 因为这个项目是 CNCF 项目,里面使用到的规范、思[......] 继续阅读

2022年11月19日 0条评论 2790点热度 1人点赞 痴者工良 阅读全文

创建一个元素: <Label x:Name="Label1" Text="111" VerticalOptions="Center"[......]继续阅读

2022年11月14日 0条评论 2526点热度 0人点赞 痴者工良 阅读全文

创建一个元素: <Label x:Name="Label1" Text="111" VerticalOptions="Center" HorizontalOptions="Ce[......]继续阅读

2022年11月14日 0条评论 2508点热度 0人点赞 痴者工良 阅读全文
15678928