From a861113f99044fc18ea64e1f7f977e34126d30f6 Mon Sep 17 00:00:00 2001 From: Jon Galloway Date: Fri, 15 Nov 2024 17:58:51 -0800 Subject: [PATCH] Bump doc references to 9.0 --- labs/2-Create-Blazor-Frontend/README.md | 2 +- labs/3-Add-Identity/README.md | 2 +- labs/4-Add-Shopping-Basket/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/labs/2-Create-Blazor-Frontend/README.md b/labs/2-Create-Blazor-Frontend/README.md index 500d9b2..61aab85 100644 --- a/labs/2-Create-Blazor-Frontend/README.md +++ b/labs/2-Create-Blazor-Frontend/README.md @@ -191,7 +191,7 @@ Now that we have a service we can use to easily retrieve the catalog items from ## Improve the user experience while the catalog page is loading -You may have noticed that, when visiting the catalog page, there is a delay before the page is rendered in the browser. This delay is more noticeable when first loading the page after launching the AppHost project, as it takes a bit of time before the various resources involved are fully started. Let's improve this by utilizing the [streaming rendering feature in Blazor](https://learn.microsoft.com/aspnet/core/blazor/components/rendering?view=aspnetcore-8.0#streaming-rendering) to display a loading message while waiting for the catalog items to be returned by the backend service. +You may have noticed that, when visiting the catalog page, there is a delay before the page is rendered in the browser. This delay is more noticeable when first loading the page after launching the AppHost project, as it takes a bit of time before the various resources involved are fully started. Let's improve this by utilizing the [streaming rendering feature in Blazor](https://learn.microsoft.com/aspnet/core/blazor/components/rendering?view=aspnetcore-9\.0#streaming-rendering) to display a loading message while waiting for the catalog items to be returned by the backend service. 1. In the `Catalog.razor` file, update the markup to render a simple "Loading..." message if the `catalogResult` field is `null`, instead of rendering nothing: diff --git a/labs/3-Add-Identity/README.md b/labs/3-Add-Identity/README.md index 96e6fff..f97c93f 100644 --- a/labs/3-Add-Identity/README.md +++ b/labs/3-Add-Identity/README.md @@ -12,7 +12,7 @@ There are many options available for implementing an IdP, including: [Keycloak](https://www.keycloak.org/) is available as a configurable container image that makes it very easy to get started with and is supported by a rich community ecosystem. We'll use it to create an IdP for our distributed application. -You can read more about [selecting an identity management solution for ASP.NET Core applications here](https://learn.microsoft.com/aspnet/core/security/how-to-choose-identity-solution?view=aspnetcore-8.0). +You can read more about [selecting an identity management solution for ASP.NET Core applications here](https://learn.microsoft.com/aspnet/core/security/how-to-choose-identity-solution?view=aspnetcore-9\.0). ## Compose a Keycloak instance into the AppHost project via a custom resource type diff --git a/labs/4-Add-Shopping-Basket/README.md b/labs/4-Add-Shopping-Basket/README.md index ccfefd8..dd78fff 100644 --- a/labs/4-Add-Shopping-Basket/README.md +++ b/labs/4-Add-Shopping-Basket/README.md @@ -496,7 +496,7 @@ The starting point for this lab already includes updates to the web site to prov 1. Open the `BasketState.cs` file in the `WebApp` project and add take a moment to read through the code. This class is used to manage the current state of the shopping bag during a web request. Blazor components run their logic individually as the component tree is rendered, so the state of the shopping basket needs to be managed in a way that is shared between components during a single request. 1. Open the `CartPage.razor` file and take a moment to read through the code. This component displays the items in the shopping basket and allows the user to update the quantity of items in the basket. The component uses the `BasketState` class to manage the state of the shopping basket during the request. - Pay special note to the logic in the `CurrentOrPendingQuantity` method that ensures the quantity rendered in the UI matches what the user has requested if they have requested a change, or the current quantity if they have not. This is required due to the way Blazor components are rendered and re-rendered during a request when using [Streaming Rendering](https://learn.microsoft.com/aspnet/core/blazor/components/rendering?view=aspnetcore-8.0#streaming-rendering). + Pay special note to the logic in the `CurrentOrPendingQuantity` method that ensures the quantity rendered in the UI matches what the user has requested if they have requested a change, or the current quantity if they have not. This is required due to the way Blazor components are rendered and re-rendered during a request when using [Streaming Rendering](https://learn.microsoft.com/aspnet/core/blazor/components/rendering?view=aspnetcore-9\.0#streaming-rendering). 1. Open the `ItemPage.razor` file and take a moment to read through the code. This component has been updated with a form that the user can use to add the item to their cart, or sign in if required. If the item is already in their basket, it displays the quantity.