# withBlazorClientApp

- Module: [Aspire.Hosting.Blazor](/reference/api/typescript/aspire.hosting.blazor.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

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.

## Definition

```typescript
interface DotnetProjectResource {
  // ... omitted for brevity
  withBlazorClientApp(
    wasmApp: BlazorWasmAppResource,
    apiPrefix?: string,
    otlpPrefix?: string,
    proxyTelemetry?: boolean): DotnetProjectResource
}
```

## Parameters

- `wasmApp` ([BlazorWasmAppResource](/reference/api/typescript/aspire.hosting.blazor/blazorwasmappresource.md))
- `apiPrefix` (`string`) `optional` `= _api`
- `otlpPrefix` (`string`) `optional` `= _otlp`
- `proxyTelemetry` (`boolean`) `optional` `= True`

## Returns

`DotnetProjectResource` `builder`

## Applies to

- [DotnetProjectResource](/reference/api/typescript/aspire.hosting.blazor/dotnetprojectresource.md)
