WebApplicationFactory<TEntryPoint>.CreateWebHostBuilder 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 a IWebHostBuilder used to set up TestServer.
protected:
virtual Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ CreateWebHostBuilder();
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
A IWebHostBuilder instance.
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.