Comparteix a través de


HostingHostBuilderExtensions.ConfigureHostOptions Método

Definición

Sobrecargas

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Agrega un delegado para configurar el HostOptions de .IHost

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Agrega un delegado para configurar la HostOptions de la IHost instancia relacionada con th.

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

Agrega un delegado para configurar el HostOptions de .IHost

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureHostOptions(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Hosting::HostBuilderContext ^, Microsoft::Extensions::Hosting::HostOptions ^> ^ configureOptions);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureHostOptions (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.Hosting.HostOptions> configureOptions);
static member ConfigureHostOptions : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.Hosting.HostOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureHostOptions (hostBuilder As IHostBuilder, configureOptions As Action(Of HostBuilderContext, HostOptions)) As IHostBuilder

Parámetros

hostBuilder
IHostBuilder

El objeto IHostBuilder que se va a configurar.

configureOptions
Action<HostBuilderContext,HostOptions>

El delegado para configurar HostOptions.

Devoluciones

La misma instancia de IHostBuilder para el encadenamiento.

Se aplica a

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

Agrega un delegado para configurar la HostOptions de la IHost instancia relacionada con th.

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

Parámetros

hostBuilder
IHostBuilder

El objeto IHostBuilder que se va a configurar.

configureOptions
Action<HostOptions>

El delegado para configurar HostOptions.

Devoluciones

La misma instancia de IHostBuilder para el encadenamiento.

Se aplica a