随笔分类 -  .Net Core

摘要:默认情况下,没有using的类,敲代码时没有智能提示,需要在【工具】-》【选项】中开启 阅读全文
posted @ 2021-06-02 17:27 IWing 阅读(591) 评论(0) 推荐(0) 编辑
摘要:默认情况下,EasyNetQ的消息处理过程中,如果throw exception,那么,依然是认为消息已经送达,不会再次推送,为了让RabbitMQ再次推送,可以这么实现: public sealed class AlwaysRequeueErrorStrategy : IConsumerError 阅读全文
posted @ 2021-04-20 16:43 IWing 阅读(560) 评论(0) 推荐(1) 编辑
摘要:使用Process.Start("http://www")有些系统会无效,所以,这样比较保险 var url = "https://www.baidu.com"; if (true) { var HTTP_KEY = @"Software\Microsoft\Windows\Shell\Associ 阅读全文
posted @ 2021-04-14 18:44 IWing 阅读(512) 评论(0) 推荐(0) 编辑
摘要:nuget引入: EPPlus.Core FileInfo file = new FileInfo(@"d:\test.xlsx"); using (ExcelPackage package = new ExcelPackage(file)) { // add a new worksheet to 阅读全文
posted @ 2021-04-13 10:31 IWing 阅读(342) 评论(0) 推荐(0) 编辑
摘要:Nuget引用 Quartz using Quartz; using Quartz.Impl; using System; using System.Threading; using System.Threading.Tasks; namespace ConsoleApp3 { class Prog 阅读全文
posted @ 2020-12-29 10:33 IWing 阅读(68) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// WM_COPYDATA消息,进程间传输信息专用结构 /// </summary> public struct COPYDATASTRUCT { public UINT64 dwData; public int cbData; public IntPtr lpDat 阅读全文
posted @ 2020-12-25 15:01 IWing 阅读(229) 评论(0) 推荐(0) 编辑
摘要:[DllImport("User32.dll")] public static extern int SendMessage(IntPtr hwnd, int msg, int wParam, ref COPYDATASTRUCT lParam); public const int WM_COPYD 阅读全文
posted @ 2020-12-25 12:56 IWing 阅读(1032) 评论(0) 推荐(0) 编辑