Chris Sainty
Blazor#
ASP_NET_Core#
Azure#
SignalR#
GitHub#
HTTP#
Web_Apps#
WebAssembly#
راهنمایی مبتنی بر مثال برای ساخت کامپوننتهای رابط کاربری قابل استفاده مجدد و رابطهای فرانتاند وب — همه با استفاده از Blazor، زبان C# و پلتفرم .NET.
در Blazor in Action میآموزید:
کتاب Blazor in Action راهنمایی عملی برای ساخت رابطهای کاربری جذاب و اپلیکیشنهای سمت کاربر با استفاده از زبان C# و .NET است. در این مسیر، با استفاده از فریمورک Blazor یک اپلیکیشن وب جذاب برای مسیریابی کوهپیمایی میسازید و در طی آن، با ویژگیهای کلیدی Blazor مانند مسیردهی (Routing)، فرمها و اعتبارسنجی، و کامپوننتهای پویا و قابل استفاده مجدد آشنا خواهید شد. تا پایان کتاب، آمادهاید که سایتها و اپلیکیشنهایی زیبا طراحی کنید که کد C# شما را مستقیماً در مرورگر اجرا میکنند — بدون نیاز به پلاگین یا تبدیلگرهای زبان.
این کتاب بر اساس آخرین نسخه پایدار Blazor نوشته شده و بهصورت یکپارچه ویژگیهای جدید .NET 6 را پوشش میدهد.
بدون نیاز به جاوااسکریپت، رابطهای کاربری تعاملی بسازید. فریمورک Blazor مایکروسافت با استفاده از WebAssembly، پلتفرم محبوب ASP.NET را گسترش میدهد و به شما امکان میدهد کامپوننتهای وب تعاملی بسازید که بهصورت بومی در مرورگر اجرا میشوند. چون Blazor از C# از ابتدا تا انتها استفاده میکند، اشتراکگذاری کد بین سرور و رابط کاربری بسیار ساده خواهد بود.
کتاب Blazor in Action به شما آموزش میدهد که چگونه اپلیکیشنهای کامل ASP.NET را با استفاده از C# از ابتدا تا انتها بسازید. کار را با توسعه کامپوننتهای Blazor آغاز میکنید و مفاهیمی مانند مسیردهی، فرمها و اعتبارسنجی را یاد میگیرید. در ادامه، اپلیکیشنی برای مسیرهای کوهنوردی میسازید که شامل کد قابل استفاده مجدد، یکپارچهسازی با کتابخانههای جاوااسکریپت و امنیت مبتنی بر نقشهاست. برای آمادهسازی اپلیکیشن برای انتشار، کتاب مباحثی همچون مدیریت وضعیت (State Management)، نگهداری داده و تست را نیز پوشش میدهد.
«نقطه شروع مناسب برای سفر شما با Blazor است.»
— Kalyan Chanumolu، مایکروسافت
«مقدمهای عالی و مرجعی کامل برای توسعه Blazor.»
— Jeff Smith، TJX
«کاربر را بهصورت عملی با استفاده از کامپوننتهای Blazor و مفاهیم آنها آشنا میکند. کتابی فوقالعاده!»
— Jim Wilson، Open Applications Group
«مقدمهای دقیق و حرفهای برای Blazor و کاربرد آن در توسعه فولاستک.»
— Mark Chalkley، MainStreetCities
An example-driven guide to building reusable UI components and web frontends—all with Blazor, C#, and .NET.
In Blazor in Action, you will learn about:
Blazor in Action is a practical guide to building stunning UIs and client-side applications using C# and .NET. You’ll use the Blazor frontend framework to create a fun and exciting web application for plotting hiking routes. As you build up your new application, you’ll master the key features of Blazor, such as routing, forms and validation, and dynamic and reusable components. By the time you're done, you'll be ready to develop beautiful sites and apps that seamlessly execute your C# code natively in the browser.
The book is written to the most recent stable build of Blazor and seamlessly integrates fresh features from .NET 6.
About the technology
Create rich web frontends without relying on JavaScript. Microsoft’s Blazor framework uses WebAssembly to extend the ultra-popular ASP.NET platform. In Blazor, you can build interactive web components that run natively in the browser without plug-ins or transpilers. And because it’s C# end-to-end, it’s easy to share code between the server and your web UI.
About the book
Blazor in Action teaches you to create full-stack ASP.NET applications end-to-end in C#. You’ll start by learning to build Blazor web components, working through core topics like routing and forms. As you go, you’ll implement a hiking route web application that includes reusable code, integration with JavaScript libraries, and role-based security. To make sure your app is production ready, this practical book also covers state management, data persistence, and testing.
What's inside
About the reader
For web developers with C# and .NET experience.
Table of Contents
1. Starting your Blazor journey
2. Your first Blazor app
3. Working with Blazor’s component model
4. Routing
5. Forms and validation—Part 1: Fundamentals
6. Forms and validation—Part 2: Beyond the basics
7. Creating more reusable components
8. Integrating with JavaScript libraries
9. Securing Blazor applications
10. Managing state
11. Testing your Blazor application
"The right place to start your journey with Blazor."
—Kalyan Chanumolu, Microsoft
"An excellent introduction and reference for Blazor development."
—Jeff Smith, TJX
"Guides the user through the practical use of Blazor components and
the concepts behind them. Fantastic book!"
—Jim Wilson, Open Applications Group
"A very well-conceived and well-executed introduction to Blazor and
its use in full-stack development."
—Mark Chalkley, MainStreetCities
From the Back Cover
Blazor in Action is a practical guide to building stunning UIs and client-side applications using C# and .NET. Written to the most recent stable build of Blazor, this example-driven book shows how to build a complete end-to-end hiking route web application that's full of easily reusable code.
You'll create your own custom Blazor components, including handy UI elements like form controls, and learn how to implement access controls and other important security features. Finally, you'll learn how you can use Blazor components inside your existing ASP.NET applications, and get essential tips and tricks on tuning your app's performance. By the time you're done, you'll be ready to develop beautiful sites and apps that seamlessly execute your C# code natively in the browser.
Chris Sainty has been a part of the Blazor community since before its first experimental preview. He was one of the first Blazor bloggers, an active open source developer, and a Microsoft MVP.