withBlazorClientApp
Method
interface DotnetProjectResource { // ... omitted for brevity withBlazorClientApp( wasmApp: BlazorWasmAppResource, apiPrefix?: string, otlpPrefix?: string, proxyTelemetry?: boolean): DotnetProjectResource;}Signature
method
withBlazorClientApp builderAttaches 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): DotnetProjectResourceParameters
wasmApp BlazorWasmAppResource The Blazor WebAssembly app to attach to the gateway.apiPrefix stringoptional= _apiThe URL path prefix for API proxy routes. The default is `"_api"`.otlpPrefix stringoptional= _otlpThe URL path prefix for telemetry proxy routes. The default is `"_otlp"`.proxyTelemetry booleanoptional= True`true` to expose the telemetry proxy for the client app; otherwise, `false`.Returns
DotnetProjectResource Applies to
This method applies to the following types: