Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTunnelReferenceAnonymous

Method
📦 Aspire.Hosting.DevTunnels v17.0.0
func (DevTunnelResource) WithTunnelReferenceAnonymous(
targetEndpoint EndpointReference,
allowAnonymous bool,
) DevTunnelResource

Signature

methodWithTunnelReferenceAnonymousbuilder
Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
WithTunnelReferenceAnonymous(
targetEndpoint EndpointReference,
allowAnonymous bool,
) DevTunnelResource
targetEndpointEndpointReferenceThe endpoint to expose via the dev tunnel.
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: