using CacheManager.Core; using System; using System.Collections.Generic; using System.Text; namespace Service.Cache { public class QKCacheManager { public static QKCacheFactory factory = new QKCacheFactory(); /// <summary> /// 读取缓存 /// </summary&…
上一篇文章(https://www.cnblogs.com/meowv/p/12943699.html)完成了项目的全局异常处理和日志记录. 在日志记录中使用的静态方法有人指出写法不是很优雅,遂优化一下上一篇中日志记录的方法,具体操作如下: 在.ToolKits层中新建扩展方法Log4NetExtensions.cs. //Log4NetExtensions.cs using log4net; using log4net.Config; using Microsoft.Extensions.Ho…