Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

IsProduction

Method
📦 Aspire.Hosting v17.0.0
func (HostEnvironment) IsProduction() (bool, error)

Signature

methodIsProduction
Checks if the environment is Production.
IsProduction() (bool, error)
(bool, error)

True if running in Production environment.

Returns (bool, error).

Applies to

This method applies to the following types: