Op Englesch liesen

Deelen iwwer


HostEnvironmentEnvExtensions Class

Definition

Extension methods for IHostEnvironment.

C#
public static class HostEnvironmentEnvExtensions
Inheritance
HostEnvironmentEnvExtensions

Methods

IsDevelopment(IHostEnvironment)

Checks if the current host environment name is Development.

IsEnvironment(IHostEnvironment, String)

Compares the current host environment name against the specified value.

IsProduction(IHostEnvironment)

Checks if the current host environment name is Production.

IsStaging(IHostEnvironment)

Checks if the current host environment name is Staging.

Applies to

Produkt Versiounen
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)