07 2022 档案
摘要:【C#】AutoMapper 使用手册 值得全部看完 =》入门 官网地址:http://automapper.org/ 官方文档:https://docs.automapper.org/en/latest/
阅读全文
摘要:.NET Core TODO: ActionFilterAttribute & IOperationFilter & HandlerMiddleware ActionFilterAttribute public class MyActionFilter : ActionFilterAttribute
阅读全文
摘要:Make HTTP requests using IHttpClientFactory in ASP.NET Core | Microsoft Docs Logging Clients created via IHttpClientFactory record log messages for al
阅读全文
摘要:Make HTTP requests using IHttpClientFactory in ASP.NET Core | Microsoft Docs HttpClient and lifetime management A new HttpClient instance is returned
阅读全文
摘要:Make HTTP requests using IHttpClientFactory in ASP.NET Core | Microsoft Docs HttpClient has the concept of delegating handlers that can be linked toge
阅读全文
摘要:Make HTTP requests using IHttpClientFactory in ASP.NET Core | Microsoft Docs There are several ways IHttpClientFactory can be used in an app: Basic us
阅读全文
摘要:为每个请求创建 HttpClient 以避免并发问题,但仍可有效使用background socket connection 。 services.AddHttpClient Use IHttpClientFactory to implement resilient HTTP requests |
阅读全文
摘要:Byte Rot: Singleton HttpClient? Beware of this serious behaviour and how to fix it HttpClient is a very nice and clean implementation that came as par
阅读全文
摘要:Concurrency with HttpClient | Think Programming 1. 如果我们以无状态的方式使用它,HttpClient可以被视为线程安全 2. HttpClient 中的属性不是线程安全的,特别是对于 DefaultRequestHeaders 属性 在大多数情况下
阅读全文
摘要:httpclient : 应该是一个全局共享变量 =》static or 单一实例(services.AddHttpClient) 为每个请求实例化 HttpClient 类 在高负载下 将耗尽可用的套接字数,这可能会导致 SocketException 错误。 解决此问题的可能方法基于将 Http
阅读全文
摘要:命名 范围 git 仓库命名; 代码项目命名 Unit test 方法命名 测试object_when特定情况_期望返回结果() how? 单一事情 自解释 & 描述所有的操作 =》如果有备注,then ?修改命名 全名 而非 缩写 or,and =》只做 一件事情,明确 同样的操作,使用 统一的词
阅读全文
摘要:Crow’s Foot Notation | Vertabelo Database Modeler Crow’s Foot Notation (uregina.ca) Entity–relationship model - Wikipedia
阅读全文