filmov
tv
.NET 8 Released - Awesome new Blazor Render Modes Demystified
Показать описание
In Blazor 8, Microsoft enabled developers to mix and match the use of Blazor Server and Blazor Webassembly on a per page or per component basis.
This new paradigm will require a new way of thinking, but the possibilities are incredible! The decision to use web assembly or server is no longer an all-or-nothing matter. The best tool can be used for the job where it makes sense.
In this video I provide a tutorial that shows how to develop a component that can be seamlessly deployed as Server, WebAssembly, or Auto. I implement a simple message board tied to a database with simple create, read, update and delete functionality.
It serves as a good introduction to anyone new to Blazor in .NET 8 that wants to understand more about the different rendering modes.
Please share your comments about the new Blazor framework. There are a lot of exciting possibilities ahead! If there any topics you would like covered please let me know in the comments.
The code for this video is located here:
00:00 Intro
03:40 Create new Project
07:35 Tour of New Template
09:40 Add Database Object for Posts
12:00 Create a Repository
20:18. Create a Posts Page
23:30 Make the Page work as WebAssembly
31:40. Pre-Rendering on the Server
39:30 Make the Page work as Blazor Server (SignalR)
42:48 Make the Page Automatically Switch from Server to WebAssembly
45:30 Transfer State from Server to WebAssembly when auto switch occurs
53:00. Pre-Render Page only on Server and then switch to WebAssembly
This new paradigm will require a new way of thinking, but the possibilities are incredible! The decision to use web assembly or server is no longer an all-or-nothing matter. The best tool can be used for the job where it makes sense.
In this video I provide a tutorial that shows how to develop a component that can be seamlessly deployed as Server, WebAssembly, or Auto. I implement a simple message board tied to a database with simple create, read, update and delete functionality.
It serves as a good introduction to anyone new to Blazor in .NET 8 that wants to understand more about the different rendering modes.
Please share your comments about the new Blazor framework. There are a lot of exciting possibilities ahead! If there any topics you would like covered please let me know in the comments.
The code for this video is located here:
00:00 Intro
03:40 Create new Project
07:35 Tour of New Template
09:40 Add Database Object for Posts
12:00 Create a Repository
20:18. Create a Posts Page
23:30 Make the Page work as WebAssembly
31:40. Pre-Rendering on the Server
39:30 Make the Page work as Blazor Server (SignalR)
42:48 Make the Page Automatically Switch from Server to WebAssembly
45:30 Transfer State from Server to WebAssembly when auto switch occurs
53:00. Pre-Render Page only on Server and then switch to WebAssembly
Комментарии