# withBlazorClientApp

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

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)
