WebApplicationFactory<TEntryPoint>.CreateHost(IHostBuilder) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the IHost with the bootstrapped application in builder
.
This is only called for applications using IHostBuilder. Applications based on
IWebHostBuilder will use CreateServer(IWebHostBuilder) instead.
protected:
virtual Microsoft::Extensions::Hosting::IHost ^ CreateHost(Microsoft::Extensions::Hosting::IHostBuilder ^ builder);
protected virtual Microsoft.Extensions.Hosting.IHost CreateHost (Microsoft.Extensions.Hosting.IHostBuilder builder);
abstract member CreateHost : Microsoft.Extensions.Hosting.IHostBuilder -> Microsoft.Extensions.Hosting.IHost
override this.CreateHost : Microsoft.Extensions.Hosting.IHostBuilder -> Microsoft.Extensions.Hosting.IHost
Protected Overridable Function CreateHost (builder As IHostBuilder) As IHost
Parameters
- builder
- IHostBuilder
The IHostBuilder used to create the host.
Returns
The IHost with the bootstrapped application.