Share via


WebApplicationFactory<TEntryPoint>.CreateHost(IHostBuilder) Method

Definition

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.

Applies to