2020年1月17日

摘要: grpc学习官方文档 .net core 版本: 3.1 操作系统: macOS 在新建 grpc 工程后,运行时出现 Unable to bind to https://localhost:5001 on the IPv4 loopback interface: 'HTTP/2 over TLS 阅读全文
posted @ 2020-01-17 16:08 ChenXinyuan 阅读(666) 评论(0) 推荐(0) 编辑

2019年12月25日

摘要: JavaFX ImageView 中存储一个带有透明区域的图片时,当鼠标位于透明区域上方时,点击或拖拽并不会触发鼠标事件。 例如我有一个这样的图标,通过代码添加到 ImageView 中,并注册点击事件。 TreeItem treeItem = new TreeItem(); ImageView i 阅读全文
posted @ 2019-12-25 14:24 ChenXinyuan 阅读(567) 评论(0) 推荐(0) 编辑

2019年9月9日

摘要: 设计模式大神整理:https://www.cnblogs.com/edisonchou/p/7512912.html 阅读全文
posted @ 2019-09-09 10:35 ChenXinyuan 阅读(88) 评论(0) 推荐(0) 编辑

2019年8月8日

摘要: 代码有时跨线程访问UI,修改按钮Enable属性不报异常。调试发现修改按钮属性的线程是Background,执行不报异常。 在窗体构造中添加 Control.CheckForIllegalCrossThreadCalls = true; 后,调试执行报跨线程访问异常。 暂未探究原因。 编写代码时,还 阅读全文
posted @ 2019-08-08 16:19 ChenXinyuan 阅读(681) 评论(1) 推荐(0) 编辑

2019年4月10日

摘要: 一般情况是这么操作的: 1、通过brew install安装应用最先是放在/usr/local/Cellar/目录下。 2、有些应用会自动创建软链接放在/usr/bin或者/usr/sbin,同时也会将整个文件夹放在/usr/local 可以使用brew list 软件名确定安装位置(通过 Home 阅读全文
posted @ 2019-04-10 23:41 ChenXinyuan 阅读(269) 评论(0) 推荐(0) 编辑

2019年3月25日

摘要: 1.安装Microsoft.DotNet.Watcher.Tools包 dotnet add package Microsoft.DotNet.Watcher.Tools --version 2.0.0 2.修改项目文件 *.csproj 在 <ItemGroup /> 中添加 <DotNetCli 阅读全文
posted @ 2019-03-25 09:20 ChenXinyuan 阅读(591) 评论(0) 推荐(0) 编辑

2019年3月13日

摘要: Json 文件配置 1 public class Startup 2 { 3 public Startup(IHostingEnvironment env) 4 { 5 var builder = new ConfigurationBuilder() 6 .AddJsonFile("Class.js 阅读全文
posted @ 2019-03-13 11:42 ChenXinyuan 阅读(189) 评论(0) 推荐(0) 编辑

导航