弹来弹去跑马灯!

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 38 下一页
摘要: 老版本的写法经常是以BeginXXX, EndXXX, 或者xx.xxxAsycn(........) 新的支持 async异步关键字配合Task可读性和易用性比老板好多了。 新旧例子: using System; using System.Collections.Generic; using Sy 阅读全文
posted @ 2020-08-11 13:46 wgscd 阅读(488) 评论(0) 推荐(0)
摘要: ..在VS debug 模式下会“无法捕获” System.NullReferenceException。。。。。。但是在release 或者外部运行是能捕获的。 test code : Form2 f = null; try { f.Dispose(); } catch (NullReferenc 阅读全文
posted @ 2020-08-10 16:22 wgscd 阅读(2180) 评论(0) 推荐(0)
摘要: wixtoolset 和VS 插件:https://wixtoolset.org/releases/ 教学:https://www.firegiant.com/wix/tutorial/getting-started/ 例子:https://www.firegiant.com/system/file 阅读全文
posted @ 2020-08-06 10:12 wgscd 阅读(901) 评论(1) 推荐(0)
摘要: 「服务」WCF中NetNamedPipeBinding的应用实例 WCF中有很多种绑定,根据官方的说法,NetNamedPipeBinding是适用于同一台主机中不同进程之间的通信的。 今天终于实现了一个简单实例,整理一下。 1、服务端创建 首先要说一下,WCF服务是需要宿主程序的,可以寄宿在win 阅读全文
posted @ 2020-08-05 15:07 wgscd 阅读(480) 评论(1) 推荐(0)
摘要: [转载] ABP框架理论学习之后台工作(Jobs)和后台工作者(Workers) 阅读全文
posted @ 2020-07-20 15:36 wgscd 阅读(588) 评论(0) 推荐(0)
摘要: Nlog 实现了 Microsoft.Extensions.Logging.ILogger。 首先Nuget下载添加引用:NLog.Extensions.Logging 在添加NLog的配置文件“NLog.Config” 到项目,内容如下: <?xml version="1.0" encoding= 阅读全文
posted @ 2020-07-15 14:16 wgscd 阅读(1041) 评论(0) 推荐(0)
摘要: 用个工具:NSSM 下载:最新的那个pre版本 http://www.nssm.cc/download 测试.netcore 的一个控制台程序(Console),仅仅用来定时写入一些日志, 代码如下: using Microsoft.Extensions.DependencyInjection; u 阅读全文
posted @ 2020-07-09 16:17 wgscd 阅读(484) 评论(0) 推荐(0)
摘要: private void TestPostData() { string all = ""; List<int> listTimeCard = new List<int>() {1,4,3,4,5,76,4,3,2,3,5 ,766,7}; int pageSize = 2; int pageNum 阅读全文
posted @ 2020-06-10 16:52 wgscd 阅读(268) 评论(0) 推荐(0)
摘要: 在 Startup 里加: services.AddCors(options => options.AddPolicy( DefaultCors, p => p.SetIsOriginAllowedToAllowWildcardSubdomains() .WithOrigins("https://* 阅读全文
posted @ 2020-06-10 11:03 wgscd 阅读(642) 评论(0) 推荐(0)
摘要: 安装和配置docker (略)。。。。。。。。。。。 ASP.NET Core 使用分布式缓存 ASP.NET Core 中,支持使用多种数据库进行缓存,ASP.NET Core 提供了统一的接口给开发者使用。 IDistributedCache ASP.NET Core 中,使用 IDistrib 阅读全文
posted @ 2020-06-04 13:49 wgscd 阅读(506) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 38 下一页