- 博客(5)
- 收藏
- 关注
原创 Confluent.Kafka 简单使用
1.Basic Producer Examplesusing System;using Confluent.Kafka;class Program{ public static void Main(string[] args) { var conf = new ProducerConfig { BootstrapServers = "localhost:9092" }; Action<DeliveryReport<Null, str
2021-04-14 10:14:10 1558 1
原创 git以及git-tf使用小说明
1.使用新存储库:使用Git-TF工具的典型工作流程:1.git tf clone http://myserver:8080/tfs/mycollection $/TeamProjectA/Main2.Make changes to the file in the Git repo3.git commit -a -m "commit one" (commit changes locally)4.Make more changes5.git commit -a -m "commit two...
2021-03-30 16:24:51 461
原创 C# 同步使用总结
同步的简单总结:1.lock:设置锁定和解除锁定的一种简单方式。2.Interlocked:用于使变量的简单语句原子化。Interlocked.Increment(ref state):以原子操作的形式递增指定变量的值并存储结果。参数:其值要递增的变量。 以线程安全的方式递增,递减,交换,取值。执行速度比较快。3.Monitor:lock方式被翻译为Monitor类的Enter()方法,Monitor的Exit()方法解除锁定。 Monitor.TryEnt...
2021-03-26 10:26:53 271
原创 ubuntu上docker安装mysql
1.uname -a2.更新sudo apt-get update3.安装 Docker 的命令:sudo apt-get install -y docker.io4.等待安装完毕,使用下面的命令启动 Docker:systemctl start docker5.运行系统引导时启用 docker,命令:systemctl enable docker6.核对一下 ...
2019-01-28 16:56:54 352
原创 C#获取当前程序运行路径
通过电脑自启动和双击启动的.exe程序需注意路径。//获取当前进程的完整路径,包含文件名(进程名)。string str = this.GetType().Assembly.Location;result: X:\xxx\xxx\xxx.exe (.exe文件所在的目录+.exe文件名)//获取新的 Process 组件并将其与当前活动的进程关联的主模块的完整路径,包含文件名(进程名)。...
2018-03-31 17:35:18 128
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人