WebApplicationFactory<TEntryPoint>.WithWebHostBuilder(Action<IWebHostBuilder>) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
WebApplicationFactory<TEntryPoint> IWebHostBuilder , Tarafından daha ayrıntılı bir şekilde özelleştirilmiş yeni bir oluşturur configuration .
public:
Microsoft::AspNetCore::Mvc::Testing::WebApplicationFactory<TEntryPoint> ^ WithWebHostBuilder(Action<Microsoft::AspNetCore::Hosting::IWebHostBuilder ^> ^ configuration);
public Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<TEntryPoint> WithWebHostBuilder (Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configuration);
member this.WithWebHostBuilder : Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> -> Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<'EntryPoint (requires 'EntryPoint : null)>
Public Function WithWebHostBuilder (configuration As Action(Of IWebHostBuilder)) As WebApplicationFactory(Of TEntryPoint)
Parametreler
- configuration
- Action<IWebHostBuilder>
Öğesini Action<T> yapılandırmak için bir IWebHostBuilder .
Döndürülenler
Yeni bir WebApplicationFactory<TEntryPoint> .