47

如何在ASP.NET Core程序启动时运行异步任务(1) - LamondLu

 5 years ago
source link: https://www.cnblogs.com/lwqlun/p/10346733.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
当我们做项目的时候,有时候希望自己的ASP.NET Core应用在启动前执行一些初始化逻辑。例如,你希望验证配置是否合法,填充缓存数据,或者运行数据库迁移脚本。在本篇博客中,我将介绍几种可选的方案,并

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK