摘要:
转自https://www.nhooo.com/note/qa02fb.html Task.WaitAll阻止当前线程,直到所有其他任务完成执行为止。Task.WhenAll方法用于创建仅当所有其他任务均已完成时才完成的任务。 如果我们使用Task.WhenAll,我们将得到一个未完成的任务对象。但 阅读全文
摘要:
引用了Quartz组件后,打印日志时,整天都有相应的调试信息打印出来,严重影响了查找日志效率,谷歌一番后,修改nlog配置文件即可 <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http://www.nlog-project.org/sch 阅读全文
摘要:
上图 AppSettingsHelper代码, 标红的部分,要按照这个来,否则会提示找不到appsettings.json文件 The configuration file 'appsettings.json' was not found and is not optional. The physi 阅读全文
摘要:
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; usi 阅读全文
摘要:
using System.Web.Mvc.Html; EnumHelper.GetSelectList(typeof(OperationType)); OperationType 如下 public enum OperationType:int { /// <summary> /// 系统 /// 阅读全文
摘要:
类似下面的文件名info/nul.htmlinfo/aux.html 服务器直接返回404错误提示查了资料,解决方案如下 web.config中增加如下加粗部分 <configuration> <system.web> <httpRuntime relaxedUrlToFileSystemMappi 阅读全文
摘要:
System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase("要转换的字母") you just have to believe in yourself, and fly with your heart. TO 阅读全文
摘要:
用以下代码可将Fody/Costura嵌入式的资源文件还原 public static void ExtractResFile(string resFileName, string outputFile) { try { using (FileStream inStream = new FileSt 阅读全文
摘要:
Redis Windows版本下载地址 https://github.com/tporadowski/redis/releases 安装可参照https://blog.csdn.net/yangwenxue1989/article/details/88884668 所有配置均在 redis.wind 阅读全文
摘要:
docker run -it -v /www/wwwlogs/kkw:/logs -d -p 8055:8055 --restart=always --name kkw kkw 还是搞不太明白啊 参数尽量放在 --name kkw kkw 的前面,放后面,似乎不能生效,还需要测试 docker ru 阅读全文