What is the purpose of WebHostBuilder() function?

 Posted by Rajnilari2015 on 8/9/2016 | Category: ASP.NET Core Interview questions | Views: 3336 | Points: 40

It is use to build up the HTTP pipeline via webHostBuilder.Use() chaining it all together with WebHostBuilder.Build() by using the builder pattern. It is available within the Microsoft.AspNet.Hosting namespace.The purpose of the Build method is to build the required services and a Microsoft.AspNetCore.Hosting.IWebHost which hosts a web application.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response