Skip to content
Docs Try Aspire

withTunnelReferenceAnonymous

Function
📦 Aspire.Hosting.Maui 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

Applies to

This function is an extension method on the following types: