Watch Aspire live streamsDocsTry Aspire

withExpiration

Method
📦 Aspire.Hosting.DevTunnels v13.6.0
interface DevTunnelResource {
// ... omitted for brevity
withExpiration(expirationHours: number): DevTunnelResource;
}

Signature

methodwithExpirationbuilder
Configures how long the tunnel can remain unused or unmodified before it expires.
withExpiration(expirationHours: number): DevTunnelResource
expirationHoursnumber
DevTunnelResource

Applies to

This method applies to the following types: