摘要: ly188:二话不说上代码:同步方法资源不够、并发多时容易超时,建议使用异步方法。 public class CacheRepository : ICacheRepository { #region 配置连接 /// <summary> /// syncTimeout:允许同步操作的时间(ms) / 阅读全文
posted @ 2021-08-27 10:18 ly188 阅读(604) 评论(0) 推荐(0)
摘要: public class AzureBlobHelper { /// <summary> /// 初始化链接字符串 /// </summary> private static string ConnectionString = "azureBlob链接字符串"; /// <summary> /// 阅读全文
posted @ 2021-08-19 09:43 ly188 阅读(128) 评论(0) 推荐(0)
摘要: 中间件方法 ////操作日志中间件 public class HttpContextMiddleware { public readonly RequestDelegate _next; public readonly string _serviceName; public HttpContextM 阅读全文
posted @ 2021-08-19 09:22 ly188 阅读(769) 评论(0) 推荐(0)