Leggi in inglese

Condividi tramite


Host Class

Definition

Provides convenience methods for creating instances of IHostBuilder with pre-configured defaults.

C#
public static class Host
Inheritance
Host

Methods

CreateApplicationBuilder()

Initializes a new instance of the HostApplicationBuilder class with pre-configured defaults.

CreateApplicationBuilder(HostApplicationBuilderSettings)

Initializes a new instance of the HostApplicationBuilder class with preconfigured defaults.

CreateApplicationBuilder(String[])

Initializes a new instance of the HostApplicationBuilder class with pre-configured defaults.

CreateDefaultBuilder()

Initializes a new instance of the HostBuilder class with pre-configured defaults.

CreateDefaultBuilder(String[])

Initializes a new instance of the HostBuilder class with pre-configured defaults.

CreateEmptyApplicationBuilder(HostApplicationBuilderSettings)

Initializes a new instance of the HostApplicationBuilder class with no pre-configured defaults.

Applies to

Prodotto Versioni
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)