IHostEnvironment
Interface
interface IHostEnvironment { isDevelopment(): boolean; isEnvironment(environmentName: string): boolean; isProduction(): boolean; isStaging(): boolean;}Methods
method
isDevelopment Checks if running in Development environment
isDevelopment(): booleanReturns
boolean method
isEnvironment Checks if the environment matches the specified name
isEnvironment(environmentName: string): booleanParameters
environmentName string Returns
boolean method
isProduction Checks if running in Production environment
isProduction(): booleanReturns
boolean