网站首页
编程语言
数据库
系统相关
其他分享
编程问答
UseStartup
2024-08-09
.net core web 启动过程(2)
在.netcoreweb启动过程(1)中介绍了IHostStartup的执行过程,该文章主要介绍IStartup的执行过程。最常用的配置Startup方式,通过调用webHostBuilder扩展方法UseStartup<T>来指定。varhost=newHostBuilder().ConfigureWebHost(webHostBuilder=>{