Condividi tramite


FakeHostingExtensions.Configure Metodo

Definizione

IHostBuilder Espone per le modifiche tramite un delegato.

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

Parametri

builder
IHostBuilder

Istanza di IHostBuilder.

configure
Action<IHostBuilder>

Configura l'istanza IHostBuilder di .

Restituisce

Istanza di IHostBuilder.

Commenti

Progettato per semplificare la configurazione dell'host negli unit test definendo metodi di configurazione comuni.

Si applica a