01 2021 档案
摘要:很简单的代码,看注释 class Program { private static ManualResetEvent _manualResetEvent = new ManualResetEvent(false); // 参数值1,约束集合的大小。当_messageQueue.Add时大小已经为1时
阅读全文
摘要:入口 //ConfigureServices foreach (var module in Modules) { if (module.Instance is AbpModule abpModule) { if (!abpModule.SkipAutoServiceRegistration) { /
阅读全文
摘要:比较随意,记录下过程,以便忘了以后重拾。 所谓约定注册是指不需要明确写代码注入,只需要按约定规则写服务类,框架自动完成服务注册。 例如,只要这样写,框架就会自动注册。 public class TaxCalculator : ITaxCalculator, ICanCalculate,ITransi
阅读全文
摘要:比较随意,记录下过程,以便忘了以后重拾。 三个关注点 Program.cs internal static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHo
阅读全文
摘要:源自stackoverflow
阅读全文
摘要:QueryPerformanceFrequency是操作系统的性能统计分辨率,也就是每秒钟统计多少次的意思 QueryPerformanceCounter 是系统性能统计计数器,表示统计了多少次,除以QueryPerformanceFrequency,得到系统运行时间(秒数)。 QueryPerfo
阅读全文
摘要:介绍 本项目前后端分离,后端采用ABP VNext框架,前端Vue。 项目地址: https://github.com/pojianbing/AuthCenter 目前包含的模块有: 身份认证管理 IdentityServer管理 租户管理 审计日志 除IdentityServer外,其他三个模块都
阅读全文
摘要:问题 每次vs重启都提示安装证书,即使执行dotnet dev-certs https --clean,dotnet dev-certs https -t然后重启vs也不行。 环境 win10, vs2019 解决办法 运行输入certmgr.msc 在个人,受信任的根证书颁发机构内删除颁发给loc
阅读全文