Aspire.Hosting.Blazor
Official
📦 Aspire.Hosting.Blazor v13.4.0-preview.1.26281.18 3 Functions
1 Types
1 types and 0 members
Types
Functions
method
addBlazorGateway builder Registers the built-in Blazor Gateway as a file-based C# app. The gateway is shipped as Gateway.cs alongside this library and launched via `AddCSharpApp`. No separate project is needed.
addBlazorGateway(name: string): ProjectResource method
addBlazorWasmProject builder Registers a Blazor WebAssembly project as a resource without launching it as a process. Prefer AddBlazorWasmProject<TProject> which uses IProjectMetadata for path discovery.
addBlazorWasmProject(name: string, projectPath: string): BlazorWasmAppResource method
withBlazorClientApp builder Attaches a Blazor WebAssembly app to the Gateway. The resource name is used as the URL path prefix (e.g., resource "store" → /store/). Service names are derived from WithReference() annotations on the WASM resource. Service references from the WASM app are automatically forwarded to the gateway so the gateway can resolve service endpoints for YARP proxying.
withBlazorClientApp(wasmApp: BlazorWasmAppResource, apiPrefix?: string, otlpPrefix?: string, proxyTelemetry?: boolean): ProjectResource