摘要:
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. 意思是:请求的接口不支持Https,改为http试试 如何配置服务支持https? 阅读全文
摘要:
直接贴出代码示例: // 现在有10个人要过桥 // 但是一座桥上只能承受5个人,再多桥就会塌 public static void SemaphoreTest() { var semaphore = new SemaphoreSlim(5); for (int i = 1; i <= 10; i+ 阅读全文
摘要:
public class HtmlParseHelper { /// <summary> /// markdown 链接转 html a链接 /// [link](/url)转为<a class='view-more-options' href='/url'>link</a> /// </summa 阅读全文
摘要:
[HttpPost] public HttpResponseMessage UploadFile() { HttpResponseMessage result = null; var httpRequest = Request; try { var content = httpRequest.Con 阅读全文
摘要:
getHttpClient httpClient = new HttpClient(); var request = new HttpRequestMessage() { Content = null, Method = HttpMethod.Get, RequestUri = new Uri("h 阅读全文
摘要:
VSCode Ctrl+D功能在Visual Studio 中为Alt+Shift+. 用着有点麻烦,下面介绍怎么在Visual Studio 中自定义快捷键,也用Ctrl+D vs22中这么设置不生效啊,重启vs也不行,无解,有大哥知道的评论区教教啊 阅读全文
摘要:
默认Visual Studio 2022 不再支持安装 .NET Framework 4.5 当我们项目是4.5框架时,22不支持,需要我们自行安装框架包,下面是步骤: nuget 下载 4.5 安装包 下载地址:https://www.nuget.org/packages/microsoft.ne 阅读全文
摘要:
1.mysql 逗号会优化为inner join,没有区别 EXPLAIN select test.id id,test.Name name,test_ordervy.Id id2,test_ordervy.Name name2 from test,test_ordervy where test.i 阅读全文
摘要:
public class Program { static void Main(string[] args) { int state1 = (int)EnumApplyVehicleState.Approving; int state2 = ApplyVehicleState.Approving; 阅读全文
摘要:
CQRS MediatR中介者模式,这个讲的非常明白怎么用 MediatRInstall MediatR PM> Install-Package MediatRIMeditatorIRequese、IRequestIRequestHandler<in TRequest, TResponse> pub 阅读全文