DevTunnelResource.WithExpiration

Method
📦 Aspire.Hosting.DevTunnels v17.0.0
type DevTunnelResource interface {
// ... omitted for brevity
WithExpiration(expirationHours float64) DevTunnelResource
}

Signature

methodWithExpirationbuilder
Configures how long the tunnel can remain unused or unmodified before it expires.
WithExpiration(expirationHours float64) DevTunnelResource
expirationHoursfloat64The idle expiration period, in whole hours from one hour through 30 days, inclusive.
DevTunnelResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: