diff --git a/aspnetcore/blazor/tutorials/movie-database-app/part-1.md b/aspnetcore/blazor/tutorials/movie-database-app/part-1.md index 3ff865d940..dfc5c4f398 100644 --- a/aspnetcore/blazor/tutorials/movie-database-app/part-1.md +++ b/aspnetcore/blazor/tutorials/movie-database-app/part-1.md @@ -326,10 +326,11 @@ A creates the app with var builder = WebApplication.CreateBuilder(args); ``` -Razor component services are added to the app by calling , which enables Razor components to render and execute code on the server: +Razor component services are added to the app by calling , which enables Razor components to render and execute code on the server, and adds services to support rendering Interactive Server components: ```csharp -builder.Services.AddRazorComponents(); +builder.Services.AddRazorComponents() + .AddInteractiveServerComponents(); ``` The (held by the `app` variable in the following code) is built: @@ -385,12 +386,16 @@ app.UseStaticFiles(); :::moniker-end - maps components defined in the root `App` component to the given .NET assembly and renders routable components: + maps components defined in the root `App` component to the given .NET assembly and renders routable components, and configures interactive server-side rendering (interactive SSR) support for the app: ```csharp -app.MapRazorComponents(); +app.MapRazorComponents() + .AddInteractiveServerRenderMode(); ``` +> [!NOTE] +> The extension methods on and on make the app capable of adopting interactive SSR, which isn't relevant until the last part of the tutorial series on interactivity. Over the next several articles, the app's components only adopt static SSR. + The app is run by calling on the (`app`): ```csharp diff --git a/aspnetcore/blazor/tutorials/movie-database-app/part-2.md b/aspnetcore/blazor/tutorials/movie-database-app/part-2.md index 28c463234a..f8b4c30c97 100644 --- a/aspnetcore/blazor/tutorials/movie-database-app/part-2.md +++ b/aspnetcore/blazor/tutorials/movie-database-app/part-2.md @@ -303,23 +303,6 @@ builder.Services.AddQuickGridEntityFrameworkAdapter(); builder.Services.AddDatabaseDeveloperPageExceptionFilter(); ``` -Static server-side rendering (static SSR) is enabled by calling: - -* The service collection extension method to register services for server-side rendering (SSR) of Razor components. -* The request pipeline extension method , which maps the page components defined in the `App` component to the given assembly and renders the `App` component when a request matches a route to a component: - -```csharp -builder.Services.AddRazorComponents() - .AddInteractiveServerComponents(); - -... - -app.MapRazorComponents() - .AddInteractiveServerRenderMode(); -``` - -The extension methods and make the app capable of adopting interactive SSR, which isn't relevant until the last part of the tutorial series on interactivity. Over the next several articles, the app's components only adopt static SSR. - ## Create the initial database schema using EF Core's migration feature The migrations feature in EF Core: