HostBuilder.Build()第三階段初始化HostBuilderContext。這個過程比較簡單,只是把第一階段和第二階段得到的值繫結到HostBuilderContext中
[MemberNotNull(nameof(_hostBuilderContext))] private void InitializeHostBuilderContext() { _hostBuilderContext = new HostBuilderContext(Properties) { HostingEnvironment = _hostingEnvironment!, Configuration = _hostConfiguration! }; }
結束