Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTunnelReferenceAll

Method
📦 Aspire.Hosting.DevTunnels v17.0.0
func (DevTunnelResource) WithTunnelReferenceAll(
resourceBuilder ResourceWithEndpoints,
allowAnonymous bool,
) DevTunnelResource

Signature

methodWithTunnelReferenceAllbuilder
Adds ports on the dev tunnel for all endpoints found on the referenced resource and sets whether anonymous access is allowed.
WithTunnelReferenceAll(
resourceBuilder ResourceWithEndpoints,
allowAnonymous bool,
) DevTunnelResource
resourceBuilderResourceWithEndpointsThe resource builder for the referenced resource.
allowAnonymousboolWhether anonymous access is allowed.
DevTunnelResource

The resource builder.

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

Applies to

This method applies to the following types: