Aspire.Hosting.Blazor
Official
📦 Aspire.Hosting.Blazorv13.4.0-preview.1.26281.183Functions
1Types
1 types and 0 members
Types
Functions
method
addBlazorGatewaybuilderRegisters 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): ProjectResourcemethod
addBlazorWasmProjectbuilderRegisters 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): BlazorWasmAppResourcemethod
withBlazorClientAppbuilderAttaches 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