04 2020 档案
摘要:public class RabbitMQHelper { ConnectionFactory factory = null; IConnection connection = null; IModel channel = null; public RabbitMQHelper(string hos
阅读全文
摘要:Thread //开启线程, 构造函数参数可以是委托,可以是方法名, 可以是ThreadStart(不带参数),ParameterizedThreadStart(可以在start内传入object类型参数) 类型委托 //Thread th = new Thread(()=> { }); Threa
阅读全文
摘要:一、NLog 注: NLog可以将日志记录在 数据库, 文件, 控制台, 以下只记录文件日志配置 1. WebAPI分Controller层级打印日志配置 <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="ht
阅读全文

浙公网安备 33010602011771号