能干钥匙

文章
6
资源
0
加入时间
4年0月6天

.net core 程序退出事件

平滑关闭,关闭事件//捕获Ctrl+C事件Console.CancelKeyPress += Console_CancelKeyPress;//进程退出事件AppDomain.CurrentDomain.ProcessExit += CurrentDomain_ProcessExit;//卸载事件AssemblyLoadContext.Default.Unloading += D...