WebApplicationFactory<TEntryPoint>.CreateWebHostBuilder WebApplicationFactory<TEntryPoint>.CreateWebHostBuilder WebApplicationFactory<TEntryPoint>.CreateWebHostBuilder WebApplicationFactory<TEntryPoint>.CreateWebHostBuilder Method

Definition

Creates a IWebHostBuilder used to set up TestServer.

protected:
 virtual Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ CreateWebHostBuilder();
protected virtual Microsoft.AspNetCore.Hosting.IWebHostBuilder CreateWebHostBuilder ();
abstract member CreateWebHostBuilder : unit -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
override this.CreateWebHostBuilder : unit -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Protected Overridable Function CreateWebHostBuilder () As IWebHostBuilder

Returns

Remarks

The default implementation of this method looks for a public static IWebHostBuilder CreateWebHostBuilder(string[] args) method defined on the entry point of the assembly of TEntryPoint and invokes it passing an empty string array as arguments.

Applies to