HostEnvironmentEnvExtensions extension

Extension methods for HostEnvironment.

on

Methods

isDevelopment() bool

Available on HostEnvironment, provided by the HostEnvironmentEnvExtensions extension

Checks if the current host environment name is Environments.development.
isEnvironment(String environment) bool

Available on HostEnvironment, provided by the HostEnvironmentEnvExtensions extension

Compares the current host environment name against the specified value.
isProduction() bool

Available on HostEnvironment, provided by the HostEnvironmentEnvExtensions extension

Checks if the current host environment name is Environments.production.
isStaging() bool

Available on HostEnvironment, provided by the HostEnvironmentEnvExtensions extension

Checks if the current host environment name is Environments.staging.