Compartilhar via


WebApplicationFactory<TEntryPoint>.CreateWebHostBuilder Método

Definição

Cria um IWebHostBuilder usado para configurar 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

Retornos

Uma instância de IWebHostBuilder.

Comentários

A implementação padrão desse método procura um public static IWebHostBuilder CreateWebHostBuilder(string[] args) método definido no ponto de entrada do assembly de TEntryPoint e o invoca passando uma matriz de cadeia de caracteres vazia como argumentos.

Aplica-se a