04 2021 档案
摘要:默认情况下,EasyNetQ的消息处理过程中,如果throw exception,那么,依然是认为消息已经送达,不会再次推送,为了让RabbitMQ再次推送,可以这么实现: public sealed class AlwaysRequeueErrorStrategy : IConsumerError
阅读全文
摘要:使用Process.Start("http://www")有些系统会无效,所以,这样比较保险 var url = "https://www.baidu.com"; if (true) { var HTTP_KEY = @"Software\Microsoft\Windows\Shell\Associ
阅读全文
摘要:nuget引入: EPPlus.Core FileInfo file = new FileInfo(@"d:\test.xlsx"); using (ExcelPackage package = new ExcelPackage(file)) { // add a new worksheet to
阅读全文