HostingEnvironmentExtensions HostingEnvironmentExtensions HostingEnvironmentExtensions HostingEnvironmentExtensions Class

Definition

Extension methods for IHostingEnvironment.

public ref class HostingEnvironmentExtensions abstract sealed
public static class HostingEnvironmentExtensions
type HostingEnvironmentExtensions = class
Public Module HostingEnvironmentExtensions
Inheritance
HostingEnvironmentExtensionsHostingEnvironmentExtensionsHostingEnvironmentExtensionsHostingEnvironmentExtensions

Methods

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

Checks if the current hosting environment name is Development.

IsEnvironment(IHostingEnvironment, String) 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) IsProduction(IHostingEnvironment)

Checks if the current hosting environment name is Production.

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

Checks if the current hosting environment name is Staging.

Applies to