Skip to content
Docs Try Aspire

IHostEnvironment

Interface TypeScript
📦 Aspire.Hosting.PostgreSQL v13.2.0-preview.1.26159.1
interface IHostEnvironment {
getEnvironmentName(): string;
isDevelopment(): boolean;
}

Methods

method getEnvironmentName
Gets the environment name
getEnvironmentName(): string
string
method isDevelopment
Checks if running in Development environment
isDevelopment(): boolean
boolean