Aracılığıyla paylaş


WebApplicationFactory<TEntryPoint>.CreateWebHostBuilder Yöntem

Tanım

ayarlamak TestServeriçin kullanılan bir IWebHostBuilder oluşturur.

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

Döndürülenler

Bir IWebHostBuilder örnek.

Açıklamalar

Bu yöntemin varsayılan uygulaması, derlemesinin TEntryPoint giriş noktasında tanımlanan bir public static IWebHostBuilder CreateWebHostBuilder(string[] args) yöntemi arar ve bağımsız değişken olarak boş bir dize dizisi geçirerek çağırır.

Şunlara uygulanır