Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTunnelReference

Method
📦 Aspire.Hosting.DevTunnels v17.0.0
func (DevTunnelResource) WithTunnelReference(targetEndpoint EndpointReference) DevTunnelResource

Signature

methodWithTunnelReferencebuilder
Exposes the specified endpoint via the dev tunnel.
WithTunnelReference(targetEndpoint EndpointReference) DevTunnelResource
targetEndpointEndpointReferenceThe endpoint to expose via the dev tunnel.
DevTunnelResource

The resource builder.

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

Applies to

This method applies to the following types: