Compartir a través de


GenericHostWebHostBuilderExtensions.ConfigureWebHost Método

Definición

Sobrecargas

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

Agrega y configura una aplicación web ASP.NET Core.

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)

Agrega y configura una aplicación web ASP.NET Core.

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

Source:
GenericHostWebHostBuilderExtensions.cs

Agrega y configura una aplicación web ASP.NET Core.

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure);
static member ConfigureWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder)) As IHostBuilder

Parámetros

builder
IHostBuilder

El objeto IHostBuilder al que se va a agregar IWebHostBuilder.

configure
Action<IWebHostBuilder>

El delegado que configura IWebHostBuilder.

Devoluciones

IHostBuilder.

Se aplica a

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)

Source:
GenericHostWebHostBuilderExtensions.cs

Agrega y configura una aplicación web ASP.NET Core.

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure, Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> configureWebHostBuilder);
static member ConfigureWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> * Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder), configureWebHostBuilder As Action(Of WebHostBuilderOptions)) As IHostBuilder

Parámetros

builder
IHostBuilder

El objeto IHostBuilder al que se va a agregar IWebHostBuilder.

configure
Action<IWebHostBuilder>

El delegado que configura IWebHostBuilder.

configureWebHostBuilder
Action<WebHostBuilderOptions>

El delegado que configura WebHostBuilderOptions.

Devoluciones

IHostBuilder.

Se aplica a