Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithExpiration

Method
📦 Aspire.Hosting.DevTunnels v17.0.0
func (DevTunnelResource) 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().

Applies to

This method applies to the following types: