Watch Aspire live streamsDocsTry Aspire

DevTunnelResource.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

Defined on

This method is defined on the following type: