Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

HostEnvironment.IsStaging

Method
📦 Aspire.Hosting v17.0.0
type HostEnvironment interface {
// ... omitted for brevity
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).

Defined on

This method is defined on the following type: