Bagikan melalui


FakeHostingExtensions.Configure Metode

Definisi

IHostBuilder Mengekspos perubahan melalui delegasi.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ Configure(Microsoft::Extensions::Hosting::IHostBuilder ^ builder, Action<Microsoft::Extensions::Hosting::IHostBuilder ^> ^ configure);
public static Microsoft.Extensions.Hosting.IHostBuilder Configure (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.Extensions.Hosting.IHostBuilder> configure);
static member Configure : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function Configure (builder As IHostBuilder, configure As Action(Of IHostBuilder)) As IHostBuilder

Parameter

builder
IHostBuilder

Instans IHostBuilder .

configure
Action<IHostBuilder>

Mengonfigurasi instans IHostBuilder .

Mengembalikan

Instans IHostBuilder.

Keterangan

Dirancang untuk memudahkan konfigurasi host dalam pengujian unit dengan menentukan metode konfigurasi umum.

Berlaku untuk