Full Stack Development with Microsoft Blazor: Building Web, Mobile, and Desktop Applications in .Net 8 and Beyond (使用 Microsoft Blazor 的全端開發:在 .Net 8 及以後構建網頁、行動和桌面應用程式)
Himschoot, Peter
相關主題
商品描述
Become a full-stack web developer using the Microsoft Blazor framework and the techniques shown in this book. This new edition will have you building all kinds of applications in C# and Microsoft .NET 8, from static web sites to fully interactive single page applications, and desktop and mobile applications, in no time.
At it's core, this book teaches you to build user interfaces and present data to a user for display and modification, capturing the user's changes via data binding. The book shows you how to access a rich library of .NET functionality such as a component modeling for building composable user interfaces--including developing reusable components that can be used across many pages and websites. New for this edition, the book now covers server communication using SignalR and/or gRPC, the use of virtualization to load large quantities of data efficiently, deployment and ahead-of-time compilation into WASM, new unit testing features, security using OpenID Connect, and more features added in Blazor in .NET 8.
At it's core, Blazor provides a fresh take on web development by eliminating the need to learn different languages and frameworks for client- and server-side development. It also allows C# and .NET to be used on all sides--both server-side and client-side--providing a robust feature set that is well suited toward scalable, enterprise-level applications. With Blazor you can use all your experience in .NET 8 along with thousands of existing libraries, right in the browser. This book gets you proficient using this important toolkit for web application development.
What You Will Learn
- Build user interfaces and display data for users to edit
- Capture user edits and changes via data binding
- Transfer data back and forth between server and client
- Communicate with services using REST, SignalR, or gRPC
- Develop reusable components and assemble them into bigger components
- Use routing to build single-page applications (SPAs)
- Build stable and maintainable software using unit testing
- Internationalize your application to reach more users
- Secure your Blazor application with OpenID Connect
- Build static interactive pages web pages optimized for SEO
- Use the same components to build mobile and desktop applications
Who This Book is For
Experienced .NET developers who want to apply their existing skills toward building professional-quality and server- or client-side web applications that run in any browser; also for web developers who want to step away from JavaScript and its complexities, and instead apply a proven technology (C# and .NET8) that is robust toward creating enterprise-quality applications that scale and are reliable and provide a good user experience
商品描述(中文翻譯)
成為一名全端網頁開發者,使用 Microsoft Blazor 框架和本書中展示的技術。這個新版本將讓您迅速構建各種應用程式,包括靜態網站、完全互動的單頁應用程式,以及桌面和行動應用程式,全部使用 C# 和 Microsoft .NET 8。
本書的核心在於教您如何構建用戶界面,並向用戶展示和修改數據,通過數據綁定捕捉用戶的變更。本書展示了如何訪問豐富的 .NET 功能庫,例如用於構建可組合用戶界面的組件建模,包括開發可在多個頁面和網站中重用的組件。本版新增了使用 SignalR 和/或 gRPC 進行伺服器通信的內容,使用虛擬化有效加載大量數據,部署和提前編譯為 WASM,新的單元測試功能,使用 OpenID Connect 進行安全性保護,以及 .NET 8 中 Blazor 新增的更多功能。
Blazor 的核心理念是通過消除學習不同語言和框架的需求,為網頁開發提供一種全新的視角,無論是客戶端還是伺服器端的開發。它還允許在所有端使用 C# 和 .NET,提供一套強大的功能集,非常適合可擴展的企業級應用程式。使用 Blazor,您可以在瀏覽器中利用您在 .NET 8 中的所有經驗以及數以千計的現有庫。本書將幫助您熟練掌握這個重要的網頁應用程式開發工具包。
您將學到的內容:
- 構建用戶界面並顯示用戶可編輯的數據
- 通過數據綁定捕捉用戶的編輯和變更
- 在伺服器和客戶端之間來回傳輸數據
- 使用 REST、SignalR 或 gRPC 與服務進行通信
- 開發可重用的組件並將其組裝成更大的組件
- 使用路由構建單頁應用程式 (SPAs)
- 使用單元測試構建穩定且可維護的軟體
- 國際化您的應用程式以吸引更多用戶
- 使用 OpenID Connect 保護您的 Blazor 應用程式
- 構建優化 SEO 的靜態互動網頁
- 使用相同的組件構建行動和桌面應用程式
本書適合對象:
有經驗的 .NET 開發者,希望將現有技能應用於構建專業品質的伺服器或客戶端網頁應用程式,這些應用程式可以在任何瀏覽器中運行;同時也適合希望擺脫 JavaScript 及其複雜性的網頁開發者,轉而應用一種經過驗證的技術(C# 和 .NET 8),該技術適合創建可擴展、可靠且提供良好用戶體驗的企業級應用程式。
作者簡介
Peter Himschoot works as a lead trainer, architect, and strategist at U2U. He has a wide interest in software development that includes applications for the web, Windows, and mobile devices. He has trained thousands of developers, is a regular speaker at international conferences, and has been involved in many web and mobile development projects as a software architect. He has been a Microsoft Regional Director (from 2003 to 2019) tasked with advising developer and IT professional audiences, as well as Microsoft.
作者簡介(中文翻譯)
彼得·希姆斯庫特(Peter Himschoot)擔任 U2U 的首席培訓師、架構師和策略師。他對軟體開發有廣泛的興趣,包括網頁、Windows 和行動裝置的應用程式。他培訓過數千名開發人員,並且是國際會議的常客演講者,參與了許多網頁和行動開發專案,擔任軟體架構師。他曾擔任微軟區域總監(2003年至2019年),負責為開發人員和 IT 專業人士提供建議,以及協助微軟。