Building Blazor WebAssembly Applications with gRPC Learn how to implement source generators and gRPC in your Blazor apps for better performance

Explore the power of Blazor WebAssembly, gRPC, and source generators for easy and quick web development Key Features Get to grips with integration between Blazor, gRPC, and source generators in real-life projectsDevelop a complete Blazor WebAssembly project that takes advantage of gRPC’s capabilitie...

Celý popis

Uloženo v:
Podrobná bibliografie
Hlavní autor: Pekárek, Václav
Médium: E-kniha
Jazyk:angličtina
Vydáno: Birmingham Packt Publishing 2022
Packt Publishing, Limited
Packt Publishing Limited
Vydání:1
Témata:
On-line přístup:Získat plný text
Tagy: Přidat tag
Žádné tagy, Buďte první, kdo vytvoří štítek k tomuto záznamu!
Abstract Explore the power of Blazor WebAssembly, gRPC, and source generators for easy and quick web development Key Features Get to grips with integration between Blazor, gRPC, and source generators in real-life projectsDevelop a complete Blazor WebAssembly project that takes advantage of gRPC’s capabilitiesExplore best practices for building a high-performance web application with Blazor and C# Book Description Building Blazor WebAssembly Applications with gRPC will take you to the next level in your web development career. After working through all the essentials of gRPC, Blazor, and source generators, you will be far from a beginner C# developer and would qualify as a developer with intermediate knowledge of the Blazor ecosystem. After a quick primer on the basics of Blazor technology, REST, gRPC, and source generators, you’ll dive straight into building Blazor WASM applications. You’ll learn about everything from two-way bindings and Razor syntax to project setup. The practical emphasis continues throughout the book as you steam through creating data repositories, working with REST, and building and registering gRPC services. The chapters also cover how to manage source generators, C# and debugging best practices, and more. There is no shorter path than this book to solidify your gRPC-enabled web development knowledge. By the end of this book, your knowledge of building Blazor applications with one of the most modern and powerful frameworks around will equip you with a highly sought-after skill set that you can leverage in the best way possible. What you will learn Master routing and test your learning with demo applicationsCreate service and controller classes for your API endpointsUse gRPC with Blazor instead of REST and revamp your applicationsStudy partial classes, attributes, and more in source generatorsWrite reusable Razor components and debug your code effectivelyUnderstand the semantic model of C# codeDiscover how to read and navigate through syntax treesBuild dynamic websites without using JavaScript Who this book is for This book is for beginner C# developers who want to learn how to create more performant web apps with less code using Blazor, the gRPC protocol, and source generators. The book assumes a basic understanding of C#, HTML, and web development concepts.
AbstractList Explore the power of Blazor WebAssembly, gRPC, and source generators for easy and quick web development Key Features Get to grips with integration between Blazor, gRPC, and source generators in real-life projectsDevelop a complete Blazor WebAssembly project that takes advantage of gRPC’s capabilitiesExplore best practices for building a high-performance web application with Blazor and C# Book Description Building Blazor WebAssembly Applications with gRPC will take you to the next level in your web development career. After working through all the essentials of gRPC, Blazor, and source generators, you will be far from a beginner C# developer and would qualify as a developer with intermediate knowledge of the Blazor ecosystem. After a quick primer on the basics of Blazor technology, REST, gRPC, and source generators, you’ll dive straight into building Blazor WASM applications. You’ll learn about everything from two-way bindings and Razor syntax to project setup. The practical emphasis continues throughout the book as you steam through creating data repositories, working with REST, and building and registering gRPC services. The chapters also cover how to manage source generators, C# and debugging best practices, and more. There is no shorter path than this book to solidify your gRPC-enabled web development knowledge. By the end of this book, your knowledge of building Blazor applications with one of the most modern and powerful frameworks around will equip you with a highly sought-after skill set that you can leverage in the best way possible. What you will learn Master routing and test your learning with demo applicationsCreate service and controller classes for your API endpointsUse gRPC with Blazor instead of REST and revamp your applicationsStudy partial classes, attributes, and more in source generatorsWrite reusable Razor components and debug your code effectivelyUnderstand the semantic model of C# codeDiscover how to read and navigate through syntax treesBuild dynamic websites without using JavaScript Who this book is for This book is for beginner C# developers who want to learn how to create more performant web apps with less code using Blazor, the gRPC protocol, and source generators. The book assumes a basic understanding of C#, HTML, and web development concepts.
Author Pekárek, Václav
Author_xml – sequence: 1
  fullname: Pekárek, Václav
BookMark eNpVz0tPwzAMAOAgAYKNHblw6g1xGMR10ibHrRoPaRIIIThWeXijkLWj6TSNX0_RuOCLbemzZQ_YYd3UxNg58Gvex43OFSguMsBU8wM2-tcfswGgUEIpyPGEjWL86GcQlOYqP2XpdFMFX9XLZBrMd9Mmb2QnMdLKhl0yWa9D5UxXNXVMtlX3niyfn4ozdrQwIdLoLw_Z6-3spbgfzx_vHorJfGxAp6jGmfTOeW8NSKmAvOPIpRQ8A-khw5yLfGFTQY6Qo7ceM0lCpUZpaVFbh0N2tV-8NaGj1tOy3ez6olyZ1pX_vuzt5d6u2-ZrQ7EryTbNp6O6a00oZ9MiB64E6F5e7GVFROUviiXw_iCuEX8AXZFfaw
ContentType eBook
Copyright 2022 Packt Publishing
Copyright_xml – notice: 2022 Packt Publishing
DEWEY 006.78
DOI 10.0000/9781804613290
DatabaseTitleList
DeliveryMethod fulltext_linktorsrc
Discipline Computer Science
Engineering
EISBN 9781804613290
1804613290
Edition 1
ExternalDocumentID 9781804613290
EBC7108419
10163093
GroupedDBID AABBV
AAXUV
AAZEP
ABARN
ACBYE
ADVEM
AEDWI
AEIUR
AEMZR
AERYV
AETWE
AHWGJ
ALMA_UNASSIGNED_HOLDINGS
BBABE
ECNEQ
GEOUK
IIUVB
OHILO
OODEK
QD8
AJFER
ID FETCH-LOGICAL-a19238-65dccddba15581edc0305540615d1637047fb24ece303dbd365e482a895b39bc3
IngestDate Fri Nov 21 21:53:08 EST 2025
Wed Nov 19 03:07:56 EST 2025
Thu Sep 11 05:52:31 EDT 2025
IsPeerReviewed false
IsScholarly false
LCCallNum_Ident TK5105.888 .P457 2022
Language English
LinkModel OpenURL
MergedId FETCHMERGED-LOGICAL-a19238-65dccddba15581edc0305540615d1637047fb24ece303dbd365e482a895b39bc3
OCLC 1348488173
PQID EBC7108419
PageCount 0
ParticipantIDs walterdegruyter_marc_9781804613290
proquest_ebookcentral_EBC7108419
ieee_books_10163093
PublicationCentury 2000
PublicationDate 2022
[2022]
PublicationDateYYYYMMDD 2022-01-01
PublicationDate_xml – year: 2022
  text: 2022
PublicationDecade 2020
PublicationPlace Birmingham
PublicationPlace_xml – name: Birmingham
– name: Birmingham, UK
PublicationYear 2022
Publisher Packt Publishing
Packt Publishing, Limited
Packt Publishing Limited
Publisher_xml – name: Packt Publishing
– name: Packt Publishing, Limited
– name: Packt Publishing Limited
RestrictionsOnAccess restricted access
SSID ssj0003189087
Score 2.259479
Snippet Explore the power of Blazor WebAssembly, gRPC, and source generators for easy and quick web development Key Features Get to grips with integration between...
SourceID walterdegruyter
proquest
ieee
SourceType Publisher
SubjectTerms COMPUTERS / Internet / Application Development
COMPUTERS / Programming Languages / C#
COMPUTERS / Web / Web Programming
Computing and Processing
Web site development
Web sites-Authoring programs
Subtitle Learn how to implement source generators and gRPC in your Blazor apps for better performance
TableOfContents Table of Contents Introducing Blazor, gRPC, and Source GeneratorsCreating a Blazor WebAssembly ApplicationCreating a Database Using Entity Framework CoreConnecting Client and Server with REST APIBuilding gRPC ServicesDiving Deep into Source GeneratorsBest Practices for C# and gRPC
Creating entities in the database -- Using generic services for data manipulation -- Creating models -- Mappings between models -- Creating data services -- Creating a new record -- Reading a single record -- Reading all records -- Updating records -- Deleting records -- Registering data services -- Summary -- Further reading -- Chapter 4: Connecting Client and Server with REST API -- Technical requirements -- Exposing CRUD operations in API controllers -- Consuming a REST API in Blazor components -- Creating and editing data -- Viewing the data -- Extending the demo project -- Summary -- Chapter 5: Building gRPC Services -- Technical requirements -- What are the benefits of using gRPC services? -- How does communication work in gRPC? -- Understanding the protocol buffer language -- Creating messages -- Field types -- Default values -- The reserved keyword -- Defining methods -- gRPC services in C# -- Two ways of implementing -- Implementing gRPC services using .proto files -- Creating Blazor components -- Preparation for generic components -- Creating generic list components -- Creating generic form components -- Summary -- Chapter 6: Diving Deep into Source Generators -- Technical requirements -- What can source generators generate? -- What is a syntax tree? -- What is a semantic model? -- Implementing source generators -- Using partial classes and methods -- Partial classes -- Partial methods -- Creating attributes for your needs -- Writing the first generator -- Required packages -- Limiting the generator -- Generating the code -- Referencing the generators -- Exploring generated code -- Summary -- Chapter 7: Best Practices for C# and gRPC -- gRPC is not the new REST -- Generated code can be harder to debug -- Exploring generated code -- Using a debugger -- Emitting generated files -- Testing the generator -- Type less, generate more -- Summary
Cover -- Title Page -- Copyright and Credits -- Contributors -- Table of Contents -- Preface -- Chapter 1: Introducing Blazor, gRPC, and Source Generators -- Technical requirements -- Using the Blazor framework to create websites -- Using Blazor WebAssembly for single-page applications -- Harnessing advantages of progressive web applications using Blazor -- Understanding how Blazor uses Razor syntax -- Using JavaScript in Blazor -- Understanding the REST API as the default Blazor communication interface -- Understanding gRPC and how it is different from REST -- How protocol buffers work -- Why we still use REST -- What are source generators and how do they work? -- Summary -- Further reading -- Chapter 2: Creating a Blazor WebAssembly Application -- Technical requirements -- Learning how to write Razor syntax -- Writing implicit Razor expressions -- Writing explicit Razor expressions -- Writing inline expressions -- Writing code block expressions -- Writing control structures -- Writing top-level directives -- Writing inline directives -- Creating Razor components -- Using components in other components -- Passing parameters to components -- Creating components with child content -- Communicating with the parent component -- Understanding the component life cycle -- Structuring component code -- Understanding page routing in Blazor -- Navigating between pages -- Page directive -- Route constraints -- Catch-all parameters -- Project overview and preparation -- Creating a demo Blazor WebAssembly project -- Examining the project -- Preparing the demo project -- Summary -- Chapter 3: Creating a Database Using Entity Framework Core -- Technical requirements -- Creating a data repository using EF -- Installing NuGet packages -- Enabling EF -- Creating database representation in C# -- Configuring EF Core -- Migrating code to the database
Index -- Other Books You May Enjoy
Building Blazor WebAssembly Applications with gRPC: Learn how to implement source generators and gRPC in your Blazor apps for better performance
Title Building Blazor WebAssembly Applications with gRPC
URI https://ieeexplore.ieee.org/servlet/opac?bknumber=10163093
https://ebookcentral.proquest.com/lib/[SITE_ID]/detail.action?docID=7108419
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
link http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwtV3NS8MwFH_o5sGLH1NxflHEmxS3NlmSq2MqCHOITm8lXx3irNLNz7_eJG3n2pMevIQmJCnkF15-ee_lPYAjgylnwiAQcxr6KMbEZ7qlfNGJaSwoE0pxl2yC9Pv0_p4N8iiLE5dOgCQJ_fhgL_8KtWkzYNuns3-AezapaTDfBnRTGthNWWHEs2puk80zXB-fjvnXc3p8p4U16T6J8WdGNgvHcad7HV0Puj9y8dEZzNupdsJxmNXkmL_NawWCoKIVGHD5OJ3XZJWfS2W3xza10dbDIMvXWZWl9iTL3CfK_coxqytnyczDrzRsEeoBwiGuQf28d3V7OVOCGYHCWpRksU_tD09K4_KMNyXyv_Lu3AiUHqWvn9PCbO3YwM0a1LV9IrIOCzppwGqRGMPL5eQGBAUUXgaFNweFNw-FZ6HwLBSbMDzr3XQv_Dw5hc8tKaZ-BysplRLcMDLa1kq6aGuWH2FlSC5pIRKLAGmpDUtQQoUdrBENOGVYhEzIcAtqyXOit8FDAbE3S0RlJ0SiJRlimmmEhTLzYkKa0LDrENltNXFOedZ-3QSvWJbIWdZzd96od9o1vJGiNmvCYWW5IhshJSqt8s5vOu3C8s8224PaNH3V-7Ak36YPk_Qgx_UbCfEzRw
linkProvider ProQuest Ebooks
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.title=Building+Blazor+WebAssembly+Applications+with+gRPC&rft.au=Pek%C3%A1rek%2C+V%C3%A1clav&rft.date=2022-01-01&rft.pub=Packt+Publishing+Limited&rft.isbn=9781804613290&rft_id=info:doi/10.0000%2F9781804613290&rft.externalDBID=n%2Fa&rft.externalDocID=9781804613290