Compartir a través de


FakeHostingExtensions.Configure Método

Definición

Expone los IHostBuilder cambios a través de un delegado.

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

Parámetros

builder
IHostBuilder

Instancia de IHostBuilder.

configure
Action<IHostBuilder>

Configura la IHostBuilder instancia de .

Devoluciones

Instancia de IHostBuilder.

Comentarios

Diseñado para facilitar la configuración del host en pruebas unitarias mediante la definición de métodos de configuración comunes.

Se aplica a