Skip to content
Docs Try Aspire

DevTunnelResource.withTunnelReferenceAnonymous

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

Signature

method withTunnelReferenceAnonymous builder
Configures the dev tunnel to expose a target endpoint with access control.
withTunnelReferenceAnonymous(
targetEndpoint: EndpointReference,
allowAnonymous: boolean): DevTunnelResource
targetEndpoint EndpointReference
allowAnonymous boolean
DevTunnelResource

Defined on

This method is defined on the following type: