ASP .NET Core启动流程
2018-03-22 11:31:11 0 举报
ASP .NET Core启动流程
作者其他创作
大纲/内容
builder.Build()
configure(builder)
Build
IServiceCollection hostingServices=BuildCommonService();
IWebHostBuilder
startupFailters.Reverse()
WebHostBuilder
Run()
WebHost
EnsureStartup()
Initialize()
_hostedServiceExecutor = _applicationServices.GetRequiredService();
UseDefaultServiceProvider()
WebHost.CreateDefaultBuild()
_startup.ConfigureServices()
Actionconfigure=_startup.Configure;
EnsureApplicationServices()
EnsureServer()
WebHost StartAsync()
UserIISIntegration()
BuildApplication()
CreateDefaultBuilder
var host=new WebHost();
Run()
IWebHost
IFeatureCollection ServerFeatures { get; } IServiceProvider Services { get; } void Start(); Task StartAsync(CancellationToken cancellationToken = default(CancellationToken));Task StopAsync(CancellationToken cancellationToken = default(CancellationToken));
ConfigureAppConfiguration()
UseKestrel()
UserContentRoot()
host.Initiallize();
IServer Server=_application.GetRequiredService(Iserver);
Main()
_hostedServiceExecutor.StartAsync(cancellationToken).ConfigureAwait(false)
BuildWebHost(args)
Build()
UserStartUp()
_application==null?
IApplicationBuilder builder=builderFactory.CreateVuilder(Server.Features):
收藏
0 条评论
回复 删除
下一页