Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

IsStaging

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

Signature

methodIsStaging
Checks if the environment is Staging.
IsStaging() (bool, error)
(bool, error)

True if running in Staging environment.

Returns (bool, error).

Applies to

This method applies to the following types: