[Blazor] Flow the WebAssembly options from Server to client through SSR marker by maraf · Pull Request #60714 · dotnet/aspnetcore (original) (raw)

src/Components/Endpoints/src/DependencyInjection/WebAssemblySettingsEmitter.cs

New emitter implementation to capture and expose WebAssembly environment settings.

src/Components/Endpoints/src/Rendering/EndpointHtmlRenderer.Streaming.cs

Embeds the settings JSON into the SSR marker during rendering.

src/Components/Web.JS/src/Services/ComponentDescriptorDiscovery.ts

Adds regex and discovery function for extracting WebAssembly options from SSR markers.

src/Components/Endpoints/src/DependencyInjection/RazorComponentsServiceCollectionExtensions.cs

Registers the new WebAssemblySettingsEmitter in DI.

src/Components/Web.JS/src/Boot.WebAssembly.Common.ts

Updates methods to accept and propagate WebAssembly options to the runtime.

src/Components/Web.JS/src/Boot.WebAssembly.ts

Extracts and passes WebAssembly options to the startup routine.

src/Components/Web.JS/src/Services/WebRootComponentManager.ts

Captures discovered WebAssembly options and passes them along during component registration.

src/Components/Web.JS/src/Rendering/DomMerging/DomSync.ts

Updates the descriptor handler interface to include the WebAssembly options.

src/Components/WebAssembly/Server/src/Builder/WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs

Removes the legacy call to add Blazor WebAssembly conventions.

src/Components/WebAssembly/Server/src/ComponentWebAssemblyConventions.cs

Legacy file removed as the functionality is now handled by the SSR marker.