diff --git a/src/frontend/src/content/docs/integrations/dotnet/blazor-hosting.mdx b/src/frontend/src/content/docs/integrations/dotnet/blazor-hosting.mdx index 8a083a2d4..564e24589 100644 --- a/src/frontend/src/content/docs/integrations/dotnet/blazor-hosting.mdx +++ b/src/frontend/src/content/docs/integrations/dotnet/blazor-hosting.mdx @@ -76,7 +76,7 @@ This updates your `aspire.config.json` with the Blazor hosting package: ## Add Blazor WebAssembly project -Use `AddBlazorWasmProject` / `addBlazorWasmProject` to add a Blazor WebAssembly project to the AppHost model. +Use to add a Blazor WebAssembly project to the AppHost model. @@ -114,7 +114,7 @@ await builder.build().run(); ## Add Blazor Gateway -Use `AddBlazorGateway` / `addBlazorGateway` to add the Blazor Gateway resource. The gateway is the browser-facing endpoint for your hosted Blazor app. +Use to add the Blazor Gateway resource. The gateway is the browser-facing endpoint for your hosted Blazor app. @@ -147,12 +147,12 @@ await builder.build().run(); :::note -`WithExternalHttpEndpoints()` / `withExternalHttpEndpoints()` marks the gateway endpoint as externally accessible so browser traffic can reach your app. + marks the gateway endpoint as externally accessible so browser traffic can reach your app. ::: ## Associate a client app with the gateway -Use `WithBlazorClientApp` / `withBlazorClientApp` to bind the WebAssembly project resource to the Blazor Gateway: +Use ', 'Aspire.Hosting.ApplicationModel.IResourceBuilder', 'string', 'string', 'bool']} /> to bind the WebAssembly project resource to the Blazor Gateway: @@ -225,6 +225,7 @@ const client = await builder.addBlazorWasmProject( ); const gateway = await builder.addDotnetProjectBlazorGateway('gateway'); +await gateway.withExternalHttpEndpoints(); await gateway.withBlazorClientApp(client); await builder.build().run(); @@ -242,6 +243,7 @@ var builder = DistributedApplication.CreateBuilder(args); var client = builder.AddBlazorWasmProject("client"); builder.AddDotnetProjectBlazorGateway("gateway") + .WithExternalHttpEndpoints() .WithBlazorClientApp(client); builder.Build().Run(); @@ -254,7 +256,8 @@ builder.Build().Run(); `AddDotnetProjectBlazorGateway` and its `WithBlazorClientApp` overload carry `ASPIREDOTNETPROJECT001`, in addition to the Blazor integration's `ASPIREBLAZOR001` diagnostic. These gateway APIs are - experimental independently of the core Dotnet project APIs. + experimental independently of the core Dotnet project APIs. This gateway + runs as a file-based C# app and supports both `aspire run` and publishing. For details on suppressing the diagnostic, see [ASPIREDOTNETPROJECT001](/diagnostics/aspiredotnetproject001/).