内容介绍:
Welcome to Learning Blazor. You’re probably here because you’ve heard some cool things
about Blazor and you want to try it out. So, what is it? Blazor is an open-source web framework
for building interactive client-side web user interface (UI) components using C# (pronounced
“see sharp”), hypertext markup language (HTML), and cascading style sheets (CSS). As a
feature of ASP.NET Core, Blazor extends the .NET developer platform with tools and libraries
for building web apps.
WebAssembly enables numerous non-JavaScript-based programming languages to run on the
browser. Blazor takes full advantage of WebAssembly and allows C# developers to build UI
components and client-side experiences with .NET. Blazor is a single-page application (SPA)
framework, similar to Angular, React, VueJS, and Svelte for example, but it’s based on C#
instead of JavaScript.
Okay, it’s a web framework, but what makes it different from any other client-side framework
for building web UI?
本书目录:
This book is structured as follows:
Chapter 1, “Blazing Into Blazor” introduces the core concepts and fundamentals of Blazor
for web app development as a platform. It also introduces the example app for this book and
discusses its architecture.
Chapter 2, “Executing The App” dives into how the execution of the app functions starting
from the first client request to the static website’s Uniform Resource Locator (URL). You’ll
learn how the HTML renders, the subsequent requests for additional resources are called,
and how Blazor bootstraps itself.
Chapter 3, “Componentizing” goes into how the user is represented within the app. You’ll
learn how to use third-party authentication providers to verify a user’s identity. You’ll learn
about customization of the authentication state user experience, and about various data-
binding approaches with Razor control structures.
Chapter 4, “Customizing The User Login Experience” details how the client services are
registered for dependency injection. You’ll learn about componentization and how to use
the RenderFragment approach for customizing components. You’ll also how to write
and use parameterized client-native speech synthesis that is fully functional and
configurable in Blazor WebAssembly.
Chapter 5, “Localizing The App” demonstrates how you can use a free artificial
intelligence-based automated continuous delivery pipeline to support localization. You’ll
learn how to use the framework-provided IStringLocalizer type and
corresponding services.
Chapter 6, “Exemplifying Real-time Web Functionality” introduces real-time web
functionality, and shows a notification system, live Tweet stream page, and alert
capabilities. Additionally, you’ll learn how to build a chat app using ASP.NET Core
SignalR.
Chapter 7, “Using Source Generators” creates a case for source generators to improve the
Blazor JavaScript interop experience. You’ll learn why C# source generators are so useful
in app development and how they’ll save you loads of time.
Chapter 8, “Accepting Form Input with Validation” explores how forms work. We’ll go
through an advanced
· · · · · · (更多)