Watch Aspire live streamsDocsTry Aspire

withBlazorClientApp

Method
📦 Aspire.Hosting.Blazor v13.6.0-preview.1.26478.8
interface DotnetProjectResource {
// ... omitted for brevity
withBlazorClientApp(
wasmApp: BlazorWasmAppResource,
apiPrefix?: string,
otlpPrefix?: string,
proxyTelemetry?: boolean): DotnetProjectResource;
}

Signature

methodwithBlazorClientAppbuilder
Attaches a Blazor WebAssembly app to the gateway. The app's resource name becomes its URL path prefix, and its service references are forwarded to the gateway for proxying.
withBlazorClientApp(
wasmApp: BlazorWasmAppResource,
apiPrefix?: string,
otlpPrefix?: string,
proxyTelemetry?: boolean): DotnetProjectResource
wasmAppBlazorWasmAppResource
apiPrefixstringoptional= _api
otlpPrefixstringoptional= _otlp
proxyTelemetrybooleanoptional= True
DotnetProjectResource

Applies to

This method applies to the following types: