摘要: Code builder.Environment.ApplicationName Examples var builder = WebApplication.CreateBuilder(args); builder.Services.AddEndpointsApiExplorer(); builde 阅读全文
posted @ 2022-06-17 16:49 喜爱糖葫芦 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 避免lock(this) lock(this)容易发生死锁 应该对私有引用变量加锁 下面是发生死锁示例 program.cs // See https://aka.ms/new-console-template for more information using DeadLock; Console 阅读全文
posted @ 2022-06-17 16:30 喜爱糖葫芦 阅读(138) 评论(0) 推荐(0) 编辑