Skip to content
Docs Try Aspire
Docs Try

DevTunnelResource.withTunnelReferenceAnonymous

Method
📦 Aspire.Hosting.DevTunnels v13.4.0
interface DevTunnelResource {
// ... omitted for brevity
withTunnelReferenceAnonymous(
targetEndpoint: EndpointReference,
allowAnonymous: boolean): DevTunnelResource;
}

Signature

method withTunnelReferenceAnonymous builder
Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
withTunnelReferenceAnonymous(
targetEndpoint: EndpointReference,
allowAnonymous: boolean): DevTunnelResource
targetEndpoint EndpointReference
allowAnonymous boolean
DevTunnelResource

Defined on

This method is defined on the following type: