上一页 1 2 3 4 5 6 7 8 9 ··· 27 下一页
摘要: ElasticSearch 精确查询统计 match_phrase:短语匹配,不分词 GET logback-2022-08/_search { "size": 1, //显示1条记录 "query": { "bool": { "must": [ { "match_phrase": { "app": 阅读全文
posted @ 2022-08-30 09:27 0611163 阅读(270) 评论(0) 推荐(0) 编辑
摘要: # 一个例子形象的理解协程和线程的区别 Talk is cheap, show me the code! 所以,废话先不说,先上代码: ## 首先写一个WebAPI接口 ```C# /// /// 测试接口 /// [RoutePrefix("api/test")] public class Tes 阅读全文
posted @ 2022-08-17 10:34 0611163 阅读(1383) 评论(1) 推荐(5) 编辑
摘要: 技术群里有人发了一段代码: 附言:兄弟们,这个单例怎么样? 我回复:什么鬼,看不懂啊?! 也有其他小伙伴表示看不懂,看来大家的C#基础和我一样并不全面。 我看不懂,主要是因为我没用过TaskCompletionSource和Interlocked的CompareExchange方法,然后经过我1、2 阅读全文
posted @ 2022-07-22 17:17 0611163 阅读(2056) 评论(7) 推荐(2) 编辑
摘要: 代码: <!DOCTYPE html> <html> <head> <title>计算屏幕坐标</title> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="vie 阅读全文
posted @ 2022-07-08 09:11 0611163 阅读(68) 评论(1) 推荐(0) 编辑
摘要: 无意中发现,WPF ElementHost 控件如果未正确释放,会存在内存泄露问题。解决方法如下: xaml代码: <Grid x:Name="grid"> <WindowsFormsHost x:Name="host"> <ElementHost x:Name="elementHost"> <lo 阅读全文
posted @ 2022-06-06 10:57 0611163 阅读(182) 评论(0) 推荐(0) 编辑
摘要: C# 实用第三方库 Autofac 依赖注入IOC框架 NuGet安装:Autofac、Autofac.Extras.DynamicProxy AutoMapper 对象映射 Mapster 对象映射 Castle.Core 动态代理AOP框架 Quartz 定时任务框架 NLog 日志框架 NuG 阅读全文
posted @ 2022-05-26 14:40 0611163 阅读(446) 评论(0) 推荐(0) 编辑
摘要: C# WebSocket 后端代码: using Newtonsoft.Json; using SuperSocket.WebSocket; using System; using System.Collections.Concurrent; using System.Collections.Gen 阅读全文
posted @ 2022-04-27 14:47 0611163 阅读(119) 评论(0) 推荐(0) 编辑
摘要: server { listen 8000; server_name localhost; location / { root D:/Project/guns/dist; index index.html index.htm; } location /api/ { proxy_pass http:// 阅读全文
posted @ 2022-04-26 12:10 0611163 阅读(40) 评论(0) 推荐(0) 编辑
摘要: WEB端播放华为海康大华视频方案 类似标题:谷歌浏览器播放华为海康大华视频方案 方案 以下方案相当于给需要播放视频的WEB系统做了一个专用的浏览器,通过专用浏览器的CS客户端组件播放视频,当然,这个专用浏览器是需要安装的 使用WPF编写一个客户端程序,嵌入CefSharp浏览器控件,除了浏览器之外无 阅读全文
posted @ 2022-03-12 20:53 0611163 阅读(1258) 评论(0) 推荐(0) 编辑
摘要: Demo代码地址: https://gitee.com/s0611163/three.js-demo Three.js Three.js下载 从GitHub上下载一个Release版本,https://github.com/mrdoob/three.js,本Demo使用的是r112版本,下载地址:t 阅读全文
posted @ 2022-03-04 11:31 0611163 阅读(666) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 27 下一页