withExpiration

Method
📦 Aspire.Hosting.DevTunnels v17.0.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
expirationHoursnumberThe idle expiration period, in whole hours from one hour through 30 days, inclusive.
DevTunnelResource

Applies to

This method applies to the following types: