ebook img

Apps and Services with .NET 7 PDF

815 Pages·2022·18.763 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Apps and Services with .NET 7

Apps and Services with .NET 7 First Edition Build practical projects with Blazor, .NET MAUI, gRPC, GraphQL, and other enterprise technologies Mark J. Price BIRMINGHAM—MUMBAI Apps and Services with .NET 7 First Edition Copyright © 2022 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. Senior Publishing Product Manager: Suman Sen Acquisition Editor – Peer Reviews: Saby Dsilva Project Editor: Janice Gonsalves Content Development Editor: Lucy Wan Copy Editor: Safis Editing Technical Editor: Aniket Shetty Proofreader: Safis Editing Indexer: Subalakshmi Govindhan Presentation Designer: Rajesh Shirsath First published: November 2022 Production reference: 1081122 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-80181-343-3 www.packt.com Contributors About the author Mark J. Price is a Microsoft Specialist: Programming in C# and Architecting Microsoft Azure Solutions, with over 20 years of experience. Since 1993, he has passed more than 80 Microsoft programming exams and specializes in preparing others to pass them. Between 2001 and 2003, Mark was employed to write official courseware for Microsoft in Redmond, USA. His team wrote the first training courses for C# while it was still an early alpha version. While with Microsoft, he taught “train-the-trainer” classes to get Microsoft Certified Trainers up to speed on C# and .NET. Mark has spent most of his career training a wide variety of students, from 16-year-old apprentices to 70-year-old retirees, with the majority being professional developers. Mark holds a Computer Science BSc. Hons. degree. About the reviewers Damir Arh has many years of experience with software development and maintenance, from com- plex enterprise software projects to modern consumer-oriented mobile applications. Although he has worked with a wide spectrum of different languages, his favorite language remains C#. In his drive towards better development processes, he is a proponent of test-driven development, continuous integration, and continuous deployment. He shares his knowledge by speaking at local user groups and conferences, blogging, and writing articles. He has received the prestigious Microsoft MVP award for developer technologies 12 times in a row. In his spare time, he’s always on the move: hiking, geo- caching, running, and rock climbing. Tomasz Pęczek is a passionate developer, architect, blogger, speaker, and OSS contributor/maintainer in the .NET and Azure space. His commitment to sharing his knowledge and experiences has earned him a Microsoft MVP title in the Developer Technologies category. Throughout his 18+ years of professional career, he has been designing and developing software that powers companies across the healthcare, banking, e-learning, and e-discovery industries. Currently, he is a Technical Fellow at Predica, where he focuses on ensuring that projects deliver true business value for clients and adhere to the highest industry standards. His blog is at https://www.tpeczek.com/, and he can be found on Twitter as @tpeczek. Join our book’s Discord space Join the book’s Discord workspace for Ask me Anything sessions with the author. https://packt.link/apps_and_services_dotnet7 Quick Chapter Reference Chapter 1: Introducing Apps and Services with .NET 1 Chapter 2: Managing Relational Data Using SQL Server 43 Chapter 3: Managing NoSQL Data Using Azure Cosmos DB 113 Chapter 4: Benchmarking Performance, Multitasking, and Concurrency 151 Chapter 5: Implementing Popular Third-Party Libraries 189 Chapter 6: Observing and Modifying Code Execution Dynamically 225 Chapter 7: Handling Dates, Times, and Internationalization 249 Chapter 8: Protecting Your Data and Applications 285 Chapter 9: Building and Securing Web Services Using Minimal APIs 319 Chapter 10: Exposing Data via the Web Using OData 361 Chapter 11: Combining Data Sources Using GraphQL 389 Chapter 12: Building Efficient Microservices Using gRPC 429 Chapter 13: Broadcasting Real-Time Communication Using SignalR 457 vi Quick Chapter Reference Chapter 14: Building Serverless Nanoservices Using Azure Functions 483 Chapter 15: Building Web User Interfaces Using ASP.NET Core 525 Chapter 16: Building Web Components Using Blazor WebAssembly 569 Chapter 17: Leveraging Open-Source Blazor Component Libraries 613 Chapter 18: Building Mobile and Desktop Apps Using .NET MAUI 647 Chapter 19: Integrating .NET MAUI Apps with Blazor and Native Platforms 707 Chapter 20: Introducing the Survey Project Challenge 751 Chapter 21: Epilogue 761 Index 763 Table of Contents Preface xxv Chapter 1: Introducing Apps and Services with .NET 1 Introducing this book and its contents ...................................................................................... 2 A companion book to continue your learning journey • 2 What you will learn in this book • 3 My learning philosophy • 3 Fixing my mistakes • 3 Project naming and port numbering conventions • 4 Treating warnings as errors • 5 App and service technologies .................................................................................................... 6 Building websites and apps using ASP.NET Core • 6 Building web and other services • 7 Windows Communication Foundation (WCF) • 7 Summary of choices for services • 8 Building Windows-only apps • 9 Understanding legacy Windows application platforms • 9 Understanding modern .NET support for legacy Windows platforms • 10 Building cross-platform mobile and desktop apps • 10 .NET MAUI alternatives • 11 Understanding Uno platform • 11 Understanding Avalonia • 11 Setting up your development environment .............................................................................. 12 Choosing the appropriate tool and application type for learning • 12 Using Visual Studio Code for cross-platform development • 12 Using GitHub Codespaces for development in the cloud • 13 Using Visual Studio for Mac for general development • 13

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.