HostingEnvironmentExtensions HostingEnvironmentExtensions HostingEnvironmentExtensions Class

Definition

Extension methods for IHostingEnvironment.

public static class HostingEnvironmentExtensions
type HostingEnvironmentExtensions = class
Public Module HostingEnvironmentExtensions
Inheritance
HostingEnvironmentExtensionsHostingEnvironmentExtensionsHostingEnvironmentExtensions

Methods

IsDevelopment(IHostingEnvironment) IsDevelopment(IHostingEnvironment) IsDevelopment(IHostingEnvironment)

Checks if the current hosting environment name is Development.

IsEnvironment(IHostingEnvironment, String) IsEnvironment(IHostingEnvironment, String) IsEnvironment(IHostingEnvironment, String)

Compares the current hosting environment name against the specified value.

IsProduction(IHostingEnvironment) IsProduction(IHostingEnvironment) IsProduction(IHostingEnvironment)

Checks if the current hosting environment name is Production.

IsStaging(IHostingEnvironment) IsStaging(IHostingEnvironment) IsStaging(IHostingEnvironment)

Checks if the current hosting environment name is Staging.

Applies to